about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-01-17 10:32:40 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-01-17 10:32:40 -0600
commit4e312d1d24f2e83db02cf0baa3ff8e3421b2e602 (patch)
tree676057d007001676ad04feb7e4e9aea9572abc03 /src
parentbf1092ad86ef8e5829db29a17f33380dabab8535 (diff)
downloadvoidsky-4e312d1d24f2e83db02cf0baa3ff8e3421b2e602.tar.zst
Shrink the header back down but use bolder title text
Diffstat (limited to 'src')
-rw-r--r--src/view/com/util/PostCtrls.tsx3
-rw-r--r--src/view/com/util/ViewHeader.tsx35
2 files changed, 19 insertions, 19 deletions
diff --git a/src/view/com/util/PostCtrls.tsx b/src/view/com/util/PostCtrls.tsx
index 25f171598..c0ef412d8 100644
--- a/src/view/com/util/PostCtrls.tsx
+++ b/src/view/com/util/PostCtrls.tsx
@@ -115,7 +115,6 @@ export function PostCtrls(opts: PostCtrlsOpts) {
     <View style={[styles.ctrls, opts.style]}>
       <View style={s.flex1}>
         <TouchableOpacity
-          testID="postCtrlsReplyButton"
           style={styles.ctrl}
           hitSlop={HITSLOP}
           onPress={opts.onPressReply}>
@@ -131,7 +130,6 @@ export function PostCtrls(opts: PostCtrlsOpts) {
       </View>
       <View style={s.flex1}>
         <TouchableOpacity
-          testID="postCtrlsToggleRepostButton"
           hitSlop={HITSLOP}
           onPress={onPressToggleRepostWrapper}
           style={styles.ctrl}>
@@ -158,7 +156,6 @@ export function PostCtrls(opts: PostCtrlsOpts) {
       </View>
       <View style={s.flex1}>
         <TouchableOpacity
-          testID="postCtrlsToggleUpvoteButton"
           style={styles.ctrl}
           hitSlop={HITSLOP}
           onPress={onPressToggleUpvoteWrapper}>
diff --git a/src/view/com/util/ViewHeader.tsx b/src/view/com/util/ViewHeader.tsx
index a4c44c126..ab80bd854 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 ? (
           <FontAwesomeIcon
-            size={24}
+            size={18}
             icon="angle-left"
-            style={[{marginTop: 8}, pal.text]}
+            style={[{marginTop: 6}, pal.text]}
           />
         ) : (
           <UserAvatar
-            size={40}
+            size={30}
             handle={store.me.handle}
             displayName={store.me.displayName}
             avatar={store.me.avatar}
@@ -68,13 +68,13 @@ export const ViewHeader = observer(function ViewHeader({
         )}
       </TouchableOpacity>
       <View style={styles.titleContainer} pointerEvents="none">
-        <Text type="h3" style={pal.text}>
+        <Text type="h4" style={[pal.text, styles.title]}>
           {title}
         </Text>
         {subtitle ? (
           <Text
-            type="h4"
-            style={[styles.subtitle, pal.textLight, {fontWeight: 'normal'}]}
+            type="h5"
+            style={[styles.subtitle, pal.textLight]}
             numberOfLines={1}>
             {subtitle}
           </Text>
@@ -83,28 +83,26 @@ export const ViewHeader = observer(function ViewHeader({
       <TouchableOpacity
         onPress={onPressSearch}
         hitSlop={HITSLOP}
-        style={[styles.btn, {marginLeft: 4}]}>
-        <MagnifyingGlassIcon size={26} strokeWidth={3} style={pal.text} />
+        style={styles.btn}>
+        <MagnifyingGlassIcon size={21} strokeWidth={3} style={pal.text} />
       </TouchableOpacity>
       {!store.session.online ? (
-        <TouchableOpacity
-          style={[styles.btn, {marginLeft: 4}]}
-          onPress={onPressReconnect}>
+        <TouchableOpacity style={styles.btn} onPress={onPressReconnect}>
           {store.session.attemptingConnect ? (
             <ActivityIndicator />
           ) : (
             <>
-              <FontAwesomeIcon icon="signal" style={pal.text} size={23} />
+              <FontAwesomeIcon icon="signal" style={pal.text} size={16} />
               <FontAwesomeIcon
                 icon="x"
                 style={{
                   backgroundColor: pal.colors.background,
                   color: theme.palette.error.background,
                   position: 'absolute',
-                  right: 0,
+                  right: 7,
                   bottom: 7,
                 }}
-                size={10}
+                size={8}
               />
             </>
           )}
@@ -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,
   },
 })