From 1ca5792165fc690541ada3a74b42f4e64ff84da7 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 18 Jul 2023 15:18:56 -0500 Subject: create explicit relationship between values --- src/view/shell/Composer.web.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/view/shell/Composer.web.tsx') diff --git a/src/view/shell/Composer.web.tsx b/src/view/shell/Composer.web.tsx index 9b0033fe6..d1a84c8d0 100644 --- a/src/view/shell/Composer.web.tsx +++ b/src/view/shell/Composer.web.tsx @@ -5,6 +5,7 @@ import {ComposePost} from '../com/composer/Composer' import {ComposerOpts} from 'state/models/ui/shell' import {usePalette} from 'lib/hooks/usePalette' import {isMobileWeb} from 'platform/detection' +import {BOTTOM_BAR_HEIGHT} from 'view/shell/bottom-bar/BottomBarStyles' export const Composer = observer( ({ @@ -62,8 +63,8 @@ const styles = StyleSheet.create({ paddingVertical: 0, paddingHorizontal: 2, borderRadius: isMobileWeb ? 0 : 8, - marginBottom: isMobileWeb ? '61px' : 0, + marginBottom: isMobileWeb ? BOTTOM_BAR_HEIGHT : 0, borderWidth: 1, - maxHeight: isMobileWeb ? 'calc(100% - 61px)' : 'calc(100% - (40px * 2))', + maxHeight: isMobileWeb ? `calc(100% - ${BOTTOM_BAR_HEIGHT}px)` : 'calc(100% - (40px * 2))', }, }) -- cgit 1.4.1