diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-05-20 19:51:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-20 19:51:34 -0700 |
commit | cb4045d2bec73053c1f4ced17b611e0f5f127fc3 (patch) | |
tree | 1c65b1c72b15b657bc8433fb94a02d9549ab656f /src/view/com/composer/Composer.tsx | |
parent | 6cc040a94eeef0e27469a3ba40393a22b7007959 (diff) | |
download | voidsky-cb4045d2bec73053c1f4ced17b611e0f5f127fc3.tar.zst |
Switch to a more visually obvious button for the threadgate (#4139)
* Switch to a more visually obvious button for the threadgate * Move threadgate button into the keyboard-sticky area * Fix keyboard offset
Diffstat (limited to 'src/view/com/composer/Composer.tsx')
-rw-r--r-- | src/view/com/composer/Composer.tsx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index d85fca299..7b102c823 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -380,7 +380,7 @@ export const ComposePost = observer(function ComposePost({ testID="composePostView" behavior="padding" style={s.flex1} - keyboardVerticalOffset={60}> + keyboardVerticalOffset={replyTo ? 60 : isAndroid ? 120 : 100}> <View style={[s.flex1, viewStyles]} aria-modal accessibilityViewIsModal> <View style={[styles.topbar, isDesktop && styles.topbarDesktop]}> <TouchableOpacity @@ -411,12 +411,6 @@ export const ComposePost = observer(function ComposePost({ onChange={setLabels} hasMedia={hasMedia} /> - {replyTo ? null : ( - <ThreadgateBtn - threadgate={threadgate} - onChange={setThreadgate} - /> - )} {canPost ? ( <TouchableOpacity testID="composerPublishBtn" @@ -547,6 +541,9 @@ export const ComposePost = observer(function ComposePost({ </KeyboardAvoidingView> <KeyboardStickyView offset={{closed: isIOS ? -insets.bottom : 0, opened: 0}}> + {replyTo ? null : ( + <ThreadgateBtn threadgate={threadgate} onChange={setThreadgate} /> + )} <View style={[pal.border, styles.bottomBar]}> <View style={[a.flex_row, a.align_center, a.gap_xs]}> <SelectPhotoBtn gallery={gallery} disabled={!canSelectImages} /> |