diff options
author | Hailey <me@haileyok.com> | 2024-05-30 21:32:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 05:32:54 +0100 |
commit | 89c9fd3be16ea96182842544d76ce019cb8e1403 (patch) | |
tree | 746f4319830142ba1bdac47fef8608f05e744c56 /src/view/com/util/ViewHeader.tsx | |
parent | 8569e2e389e756ec2df6c547e894689500d1c111 (diff) | |
download | voidsky-89c9fd3be16ea96182842544d76ce019cb8e1403.tar.zst |
Change many border widths from `1` to `hairlineWidth` (#4294)
* feed items * update some more * moar * profile card * composer and notifications * settings screen * remove border from first item in feeds * remove border from first item in feeds * more removal of top border * fix flatlist rendering * oops * scroll to top fab * a.border * centeredview/list * placeholder * web sidebar * search posts * feeds list * user lists * list header * account list width 1 * hide top border feedgens * same for lists * fix tab bar web desktop * wait... * show the border on desktop web * fix lists * fix lists * round
Diffstat (limited to 'src/view/com/util/ViewHeader.tsx')
-rw-r--r-- | src/view/com/util/ViewHeader.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/com/util/ViewHeader.tsx b/src/view/com/util/ViewHeader.tsx index 63a2b3de3..4c0f0e3e5 100644 --- a/src/view/com/util/ViewHeader.tsx +++ b/src/view/com/util/ViewHeader.tsx @@ -15,6 +15,7 @@ import {NavigationProp} from 'lib/routes/types' import {useTheme} from '#/alf' import {Text} from './text/Text' import {CenteredView} from './Views' +import hairlineWidth = StyleSheet.hairlineWidth const BACK_HITSLOP = {left: 20, top: 20, right: 50, bottom: 20} @@ -156,7 +157,7 @@ function DesktopWebHeader({ styles.desktopHeader, pal.border, { - borderBottomWidth: showBorder ? 1 : 0, + borderBottomWidth: showBorder ? hairlineWidth : 0, }, {display: 'flex', flexDirection: 'column'}, ]}> @@ -245,7 +246,7 @@ const styles = StyleSheet.create({ marginRight: 'auto', }, border: { - borderBottomWidth: 1, + borderBottomWidth: hairlineWidth, }, titleContainer: { marginLeft: 'auto', |