From 4e312d1d24f2e83db02cf0baa3ff8e3421b2e602 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 17 Jan 2023 10:32:40 -0600 Subject: [PATCH] Shrink the header back down but use bolder title text --- src/view/com/util/PostCtrls.tsx | 3 --- src/view/com/util/ViewHeader.tsx | 35 +++++++++++++++++--------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/view/com/util/PostCtrls.tsx b/src/view/com/util/PostCtrls.tsx index 25f17159..c0ef412d 100644 --- a/src/view/com/util/PostCtrls.tsx +++ b/src/view/com/util/PostCtrls.tsx @@ -115,7 +115,6 @@ export function PostCtrls(opts: PostCtrlsOpts) { @@ -131,7 +130,6 @@ export function PostCtrls(opts: PostCtrlsOpts) { @@ -158,7 +156,6 @@ export function PostCtrls(opts: PostCtrlsOpts) { diff --git a/src/view/com/util/ViewHeader.tsx b/src/view/com/util/ViewHeader.tsx index a4c44c12..ab80bd85 100644 --- a/src/view/com/util/ViewHeader.tsx +++ b/src/view/com/util/ViewHeader.tsx @@ -54,13 +54,13 @@ export const ViewHeader = observer(function ViewHeader({ style={canGoBack ? styles.backIcon : styles.backIconWide}> {canGoBack ? ( ) : ( - + {title} {subtitle ? ( {subtitle} @@ -83,28 +83,26 @@ export const ViewHeader = observer(function ViewHeader({ - + style={styles.btn}> + {!store.session.online ? ( - + {store.session.attemptingConnect ? ( ) : ( <> - + )} @@ -128,13 +126,17 @@ const styles = StyleSheet.create({ alignItems: 'baseline', marginRight: 'auto', }, + title: { + fontWeight: 'bold', + }, subtitle: { marginLeft: 4, maxWidth: 200, + fontWeight: 'normal', }, - backIcon: {width: 40, height: 40}, - backIconWide: {width: 50, height: 40}, + backIcon: {width: 30, height: 30}, + backIconWide: {width: 40, height: 30}, btn: { flexDirection: 'row', alignItems: 'center', @@ -142,5 +144,6 @@ const styles = StyleSheet.create({ width: 36, height: 36, borderRadius: 20, + marginLeft: 4, }, })