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/post-thread/PostThreadItem.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/post-thread/PostThreadItem.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 981b4e72f..096305a23 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -50,6 +50,7 @@ import {PostEmbeds} from '../util/post-embeds' import {PostMeta} from '../util/PostMeta' import {Text} from '../util/text/Text' import {PreviewableUserAvatar} from '../util/UserAvatar' +import hairlineWidth = StyleSheet.hairlineWidth export function PostThreadItem({ post, @@ -623,7 +624,7 @@ function PostOuterWrapper({ { flexDirection: 'row', paddingHorizontal: isMobile ? 10 : 6, - borderTopWidth: depth === 1 ? 1 : 0, + borderTopWidth: depth === 1 ? hairlineWidth : 0, }, ]}> {Array.from(Array(depth - 1)).map((_, n: number) => ( @@ -704,7 +705,7 @@ function ExpandedPostDetails({ const styles = StyleSheet.create({ outer: { - borderTopWidth: 1, + borderTopWidth: hairlineWidth, paddingLeft: 8, }, outerHighlighted: { @@ -714,7 +715,7 @@ const styles = StyleSheet.create({ paddingRight: 8, }, outerHighlightedRoot: { - borderTopWidth: 1, + borderTopWidth: hairlineWidth, paddingTop: 16, }, noTopBorder: { @@ -766,8 +767,8 @@ const styles = StyleSheet.create({ expandedInfo: { flexDirection: 'row', padding: 10, - borderTopWidth: 1, - borderBottomWidth: 1, + borderTopWidth: hairlineWidth, + borderBottomWidth: hairlineWidth, marginTop: 5, marginBottom: 10, }, |