From 79a2f8d5280230a125b42c60bbb5b9e4be4f9109 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 20 Sep 2024 20:47:28 +0100 Subject: Increase rounding for all embeds (#5421) * tweak image styles * fix reply image preview and covert to atoms * increase rounding on media inset border * decrease gap on desktop * fix inset styles * increase rounding on embeds to `md` * Couple edge cases --------- Co-authored-by: Eric Bailey --- src/view/com/composer/ComposerReplyTo.tsx | 157 +++++++++++++----------------- 1 file changed, 67 insertions(+), 90 deletions(-) (limited to 'src/view/com/composer/ComposerReplyTo.tsx') diff --git a/src/view/com/composer/ComposerReplyTo.tsx b/src/view/com/composer/ComposerReplyTo.tsx index d4ba1f3a8..74ca61507 100644 --- a/src/view/com/composer/ComposerReplyTo.tsx +++ b/src/view/com/composer/ComposerReplyTo.tsx @@ -16,7 +16,7 @@ import {ComposerOptsPostRef} from 'state/shell/composer' import {QuoteEmbed} from 'view/com/util/post-embeds/QuoteEmbed' import {Text} from 'view/com/util/text/Text' import {PreviewableUserAvatar} from 'view/com/util/UserAvatar' -import {useTheme} from '#/alf' +import {atoms as a, useTheme} from '#/alf' export function ComposerReplyTo({replyTo}: {replyTo: ComposerOptsPostRef}) { const t = useTheme() @@ -122,94 +122,87 @@ function ComposerReplyToImages({ showFull: boolean }) { return ( - - - {(images.length === 1 && ( - + + {(images.length === 1 && ( + + )) || + (images.length === 2 && ( + + + + )) || - (images.length === 2 && ( - + (images.length === 3 && ( + + + - )) || - (images.length === 3 && ( - + + )) || + (images.length === 4 && ( + + + - - - - - )) || - (images.length === 4 && ( - - - - - - - - - + + + - ))} - + + ))} ) } @@ -240,23 +233,7 @@ const styles = StyleSheet.create({ borderRadius: 6, overflow: 'hidden', marginTop: 2, - }, - imagesInner: { - gap: 2, - }, - imagesRow: { - flexDirection: 'row', - }, - singleImage: { - width: 65, - height: 65, - }, - doubleImageTall: { - width: 32.5, - height: 65, - }, - doubleImage: { - width: 32.5, - height: 32.5, + height: 64, + width: 64, }, }) -- cgit 1.4.1