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
This commit is contained in:
Samuel Newman 2024-06-04 12:58:09 +03:00 committed by GitHub
parent d032734278
commit d918f8dc2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 31 deletions

View file

@ -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',