diff --git a/app/components/option_item/index.tsx b/app/components/option_item/index.tsx index 041d32629d..c68f176a02 100644 --- a/app/components/option_item/index.tsx +++ b/app/components/option_item/index.tsx @@ -34,6 +34,8 @@ const OptionType = { type OptionType = typeof OptionType[keyof typeof OptionType]; +export const ITEM_HEIGHT = 48; + const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => { return { actionContainer: { @@ -44,7 +46,7 @@ const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => { container: { flexDirection: 'row', alignItems: 'center', - minHeight: 48, + minHeight: ITEM_HEIGHT, }, destructive: { color: theme.dndIndicator, diff --git a/app/screens/bottom_sheet/content.tsx b/app/screens/bottom_sheet/content.tsx index cdaad3c275..498cb9ddb3 100644 --- a/app/screens/bottom_sheet/content.tsx +++ b/app/screens/bottom_sheet/content.tsx @@ -23,7 +23,12 @@ type Props = { titleSeparator?: boolean; } -export const TITLE_HEIGHT = 38; +const TITLE_MARGIN_TOP = 4; +const TITLE_MARGIN_BOTTOM = 12; + +export const TITLE_HEIGHT = TITLE_MARGIN_TOP + TITLE_MARGIN_BOTTOM + 30; // typography 600 line height +export const SEPARATOR_MARGIN = 12; +export const SEPARATOR_MARGIN_TABLET = 20; const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => { return { @@ -31,8 +36,8 @@ const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => { flex: 1, }, titleContainer: { - marginTop: 4, - marginBottom: 12, + marginTop: TITLE_MARGIN_TOP, + marginBottom: TITLE_MARGIN_BOTTOM, }, titleText: { color: theme.centerChannelColor, @@ -71,14 +76,14 @@ const BottomSheetContent = ({buttonText, buttonIcon, children, disableButton, on } {titleSeparator && - + } <> {children} {showButton && ( <> - +