feat: update line height and width of note size warning text (#852)

This commit is contained in:
Aman Harwara
2022-02-07 22:12:08 +05:30
committed by GitHub
parent f9c47a10ca
commit 7f5f0d9d17
7 changed files with 22 additions and 14 deletions

View File

@@ -197,7 +197,7 @@ const NoteSizeWarning: FunctionComponent<{
type="warning"
className="color-accessory-tint-3 flex-shrink-0 mr-3"
/>
<div className="color-grey-0 select-none">
<div className="color-grey-0 select-none leading-140% max-w-80%">
This note may have trouble syncing to the mobile application due to its
size.
</div>

View File

@@ -4,7 +4,7 @@ import {
ButtonType,
sanitizeHtmlString,
} from '@standardnotes/snjs';
import { SKAlert } from 'sn-stylekit';
import { SKAlert } from '@standardnotes/stylekit';
/** @returns a promise resolving to true if the user confirmed, false if they canceled */
export function confirmDialog({

View File

@@ -1 +1 @@
declare module "sn-stylekit";
declare module '@standardnotes/stylekit';

View File

@@ -303,6 +303,10 @@
max-width: 75%;
}
.max-w-80\% {
max-width: 80%;
}
.max-w-72 {
max-width: 18rem;
}
@@ -844,6 +848,10 @@
flex-shrink: 0;
}
.leading-140\% {
line-height: 140%;
}
.dimmed {
opacity: .5;
cursor: default;

View File

@@ -1,4 +1,4 @@
@import 'sn-stylekit/dist/stylekit';
@import '@standardnotes/stylekit/dist/stylekit';
@import 'main';
@import 'ui';
@import 'footer';