diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-06-04 04:05:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 02:05:46 +0100 |
commit | da96fb1ef5a37018b6a238c3614e9b845d8e2686 (patch) | |
tree | 31022f17c172635beedade3597e48035993e6144 /src/view/com/composer/Composer.tsx | |
parent | b02445883ab5abd7daa80c3a27cf06ffaf539ff3 (diff) | |
download | voidsky-da96fb1ef5a37018b6a238c3614e9b845d8e2686.tar.zst |
Native `formSheet` for GIF select on iOS (#4328)
* native formsheet for gif select * trigger confirm discard if have gif * give modal a background color * fix web top bar - unrelated but I cba to make a separate PR
Diffstat (limited to 'src/view/com/composer/Composer.tsx')
-rw-r--r-- | src/view/com/composer/Composer.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index ad79cdb58..93cc87fc8 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -173,7 +173,7 @@ export const ComposePost = observer(function ComposePost({ ) const onPressCancel = useCallback(() => { - if (graphemeLength > 0 || !gallery.isEmpty) { + if (graphemeLength > 0 || !gallery.isEmpty || extGif) { closeAllDialogs() if (Keyboard) { Keyboard.dismiss() @@ -183,6 +183,7 @@ export const ComposePost = observer(function ComposePost({ onClose() } }, [ + extGif, graphemeLength, gallery.isEmpty, closeAllDialogs, @@ -728,8 +729,6 @@ function useAnimatedBorders() { const styles = StyleSheet.create({ topbar: {}, topbarDesktop: { - paddingTop: 10, - paddingBottom: 10, height: 50, }, topbarInner: { |