about summary refs log tree commit diff
path: root/src/view/com/composer/Composer.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-06-04 12:58:09 +0300
committerGitHub <noreply@github.com>2024-06-04 10:58:09 +0100
commitd918f8dc2a07ff6cd94a1b37c5358dc6e9f6452c (patch)
treee5ce05e526315eec3eddb60b38c2ad036d7c73ff /src/view/com/composer/Composer.tsx
parentd0327342783f5357f22fbc6b3903b51843306930 (diff)
downloadvoidsky-d918f8dc2a07ff6cd94a1b37c5358dc6e9f6452c.tar.zst
Composer - unbork web (#4344)
* reduce side gap + add overflow hidden

also remove the animations since they don't appear in prod, and are kinda broken

* removed fixed height to fix alt text
Diffstat (limited to 'src/view/com/composer/Composer.tsx')
-rw-r--r--src/view/com/composer/Composer.tsx13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx
index b78dafc91..58ec65a88 100644
--- a/src/view/com/composer/Composer.tsx
+++ b/src/view/com/composer/Composer.tsx
@@ -117,7 +117,7 @@ export const ComposePost = observer(function ComposePost({
   const {closeComposer} = useComposerControls()
   const {track} = useAnalytics()
   const pal = usePalette('default')
-  const {isTabletOrDesktop, isMobile} = useWebMediaQueries()
+  const {isMobile} = useWebMediaQueries()
   const {_} = useLingui()
   const requireAltTextEnabled = useRequireAltTextEnabled()
   const langPrefs = useLanguagePrefs()
@@ -400,12 +400,7 @@ export const ComposePost = observer(function ComposePost({
           style={[a.flex_1, viewStyles]}
           aria-modal
           accessibilityViewIsModal>
-          <Animated.View
-            style={[
-              styles.topbar,
-              topBarAnimatedStyle,
-              isWeb && isTabletOrDesktop && styles.topbarDesktop,
-            ]}>
+          <Animated.View style={topBarAnimatedStyle}>
             <View style={styles.topbarInner}>
               <TouchableOpacity
                 testID="composerDiscardButton"
@@ -727,10 +722,6 @@ function useAnimatedBorders() {
 }
 
 const styles = StyleSheet.create({
-  topbar: {},
-  topbarDesktop: {
-    height: 50,
-  },
   topbarInner: {
     flexDirection: 'row',
     alignItems: 'center',