diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-05-02 18:00:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 18:00:42 +0100 |
commit | dadf27fd2f417584093fb344cdacd9dbe332dade (patch) | |
tree | f04be75ba1724249894c297c8d0df3234110f3b1 /src | |
parent | bff055f618397eb5853d2dd959769821f39f9aa2 (diff) | |
download | voidsky-dadf27fd2f417584093fb344cdacd9dbe332dade.tar.zst |
[Clipclops] Minor web tweaks (#3822)
* add a11y + onPress to web send button * only adjust leading on web, due to overflow issue
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/Messages/Conversation/MessageInput.web.tsx | 5 | ||||
-rw-r--r-- | src/screens/Messages/List/index.tsx | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/screens/Messages/Conversation/MessageInput.web.tsx b/src/screens/Messages/Conversation/MessageInput.web.tsx index 2370b52db..d2880c6d6 100644 --- a/src/screens/Messages/Conversation/MessageInput.web.tsx +++ b/src/screens/Messages/Conversation/MessageInput.web.tsx @@ -78,12 +78,15 @@ export function MessageInput({ /> <Pressable accessibilityRole="button" + accessibilityLabel={_(msg`Send message`)} + accessibilityHint="" style={[ a.rounded_full, a.align_center, a.justify_center, {height: 30, width: 30, backgroundColor: t.palette.primary_500}, - ]}> + ]} + onPress={onSubmit}> <PaperPlane fill={t.palette.white} /> </Pressable> </View> diff --git a/src/screens/Messages/List/index.tsx b/src/screens/Messages/List/index.tsx index 497b23898..75c6d1a73 100644 --- a/src/screens/Messages/List/index.tsx +++ b/src/screens/Messages/List/index.tsx @@ -20,7 +20,7 @@ import {TimeElapsed} from '#/view/com/util/TimeElapsed' import {PreviewableUserAvatar} from '#/view/com/util/UserAvatar' import {ViewHeader} from '#/view/com/util/ViewHeader' import {CenteredView} from '#/view/com/util/Views' -import {atoms as a, useBreakpoints, useTheme} from '#/alf' +import {atoms as a, useBreakpoints, useTheme, web} from '#/alf' import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {DialogControlProps, useDialogControl} from '#/components/Dialog' import {ConvoMenu} from '#/components/dms/ConvoMenu' @@ -237,7 +237,9 @@ function ChatListItem({convo}: {convo: ChatBskyConvoDefs.ConvoView}) { <PreviewableUserAvatar profile={otherUser} size={42} /> </View> <View style={[a.flex_1]}> - <Text numberOfLines={1} style={[a.text_md, a.leading_normal]}> + <Text + numberOfLines={1} + style={[a.text_md, web([a.leading_normal, {marginTop: -4}])]}> <Text style={[t.atoms.text, convo.unreadCount > 0 && a.font_bold]}> {otherUser.displayName || otherUser.handle} |