diff options
Diffstat (limited to 'src/view/shell')
-rw-r--r-- | src/view/shell/bottom-bar/BottomBarStyles.tsx | 5 | ||||
-rw-r--r-- | src/view/shell/desktop/LeftNav.tsx | 6 | ||||
-rw-r--r-- | src/view/shell/index.web.tsx | 6 |
3 files changed, 8 insertions, 9 deletions
diff --git a/src/view/shell/bottom-bar/BottomBarStyles.tsx b/src/view/shell/bottom-bar/BottomBarStyles.tsx index 62c677ced..c5f31c94e 100644 --- a/src/view/shell/bottom-bar/BottomBarStyles.tsx +++ b/src/view/shell/bottom-bar/BottomBarStyles.tsx @@ -1,6 +1,7 @@ import {StyleSheet} from 'react-native' import {colors} from '#/lib/styles' +import {atoms as a} from '#/alf' export const styles = StyleSheet.create({ bottomBar: { @@ -13,9 +14,7 @@ export const styles = StyleSheet.create({ paddingLeft: 5, paddingRight: 10, }, - bottomBarWeb: { - position: 'fixed', - }, + bottomBarWeb: a.fixed, ctrl: { flex: 1, paddingTop: 13, diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index 7d7c0ac8d..0688fb5dc 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -32,7 +32,7 @@ import {LoadingPlaceholder} from '#/view/com/util/LoadingPlaceholder' import {PressableWithHover} from '#/view/com/util/PressableWithHover' import {UserAvatar} from '#/view/com/util/UserAvatar' import {NavSignupCard} from '#/view/shell/NavSignupCard' -import {atoms as a, tokens, useLayoutBreakpoints, useTheme} from '#/alf' +import {atoms as a, tokens, useLayoutBreakpoints, useTheme, web} from '#/alf' import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {type DialogControlProps} from '#/components/Dialog' import {ArrowBoxLeft_Stroke2_Corner0_Rounded as LeaveIcon} from '#/components/icons/ArrowBoxLeft' @@ -718,7 +718,7 @@ export function DesktopLeftNav() { const styles = StyleSheet.create({ leftNav: { - position: 'fixed', + ...a.fixed, top: 0, paddingTop: 10, paddingBottom: 10, @@ -736,7 +736,7 @@ const styles = StyleSheet.create({ height: '100%', width: 86, alignItems: 'center', - overflowX: 'hidden', + ...web({overflowX: 'hidden'}), }, backBtn: { position: 'absolute', diff --git a/src/view/shell/index.web.tsx b/src/view/shell/index.web.tsx index e194a49de..898ff8fa8 100644 --- a/src/view/shell/index.web.tsx +++ b/src/view/shell/index.web.tsx @@ -8,7 +8,7 @@ import {RemoveScrollBar} from 'react-remove-scroll-bar' import {useColorSchemeStyle} from '#/lib/hooks/useColorSchemeStyle' import {useIntentHandler} from '#/lib/hooks/useIntentHandler' import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries' -import {NavigationProp} from '#/lib/routes/types' +import {type NavigationProp} from '#/lib/routes/types' import {colors} from '#/lib/styles' import {useIsDrawerOpen, useSetDrawerOpen} from '#/state/shell' import {useComposerKeyboardShortcut} from '#/state/shell/composer/useComposerKeyboardShortcut' @@ -130,7 +130,7 @@ const styles = StyleSheet.create({ backgroundColor: colors.black, // TODO }, drawerMask: { - position: 'fixed', + ...a.fixed, width: '100%', height: '100%', top: 0, @@ -138,7 +138,7 @@ const styles = StyleSheet.create({ }, drawerContainer: { display: 'flex', - position: 'fixed', + ...a.fixed, top: 0, left: 0, height: '100%', |