From bec94ed82c47f9a5275cbc5fc740dd97dda10183 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 17 May 2023 22:58:53 -0500 Subject: Desktop styling fixes --- src/view/com/util/ViewHeader.tsx | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'src/view/com/util/ViewHeader.tsx') diff --git a/src/view/com/util/ViewHeader.tsx b/src/view/com/util/ViewHeader.tsx index 97802394e..7f13f1838 100644 --- a/src/view/com/util/ViewHeader.tsx +++ b/src/view/com/util/ViewHeader.tsx @@ -20,12 +20,14 @@ export const ViewHeader = observer(function ({ canGoBack, hideOnScroll, showOnDesktop, + showBorder, renderButton, }: { title: string canGoBack?: boolean hideOnScroll?: boolean showOnDesktop?: boolean + showBorder?: boolean renderButton?: () => JSX.Element }) { const pal = usePalette('default') @@ -57,7 +59,7 @@ export const ViewHeader = observer(function ({ } return ( - + { const store = useStores() const pal = usePalette('default') @@ -145,11 +149,28 @@ const Container = observer( } if (!hideOnScroll) { - return {children} + return ( + + {children} + + ) } return ( + style={[ + styles.header, + pal.view, + pal.border, + styles.headerFloating, + transform, + showBorder && styles.border, + ]}> {children} ) @@ -172,6 +193,9 @@ const styles = StyleSheet.create({ borderBottomWidth: 1, paddingVertical: 12, }, + border: { + borderBottomWidth: 1, + }, titleContainer: { marginLeft: 'auto', -- cgit 1.4.1