From 3eb531b00004f3752ec825350df1943c33028ac1 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 1 Nov 2024 22:02:39 +0000 Subject: Composer UI fixes (#6065) * Fix close button overlap * Make footer actually sticky on web * Special toast for thread * Only stick to bottom for last post --- src/view/com/composer/text-input/TextInput.web.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/view/com/composer/text-input/TextInput.web.tsx') diff --git a/src/view/com/composer/text-input/TextInput.web.tsx b/src/view/com/composer/text-input/TextInput.web.tsx index 7ce7150a1..fa742d258 100644 --- a/src/view/com/composer/text-input/TextInput.web.tsx +++ b/src/view/com/composer/text-input/TextInput.web.tsx @@ -42,6 +42,7 @@ interface TextInputProps { placeholder: string suggestedLinks: Set webForceMinHeight: boolean + hasRightPadding: boolean isActive: boolean setRichText: (v: RichText | ((v: RichText) => RichText)) => void onPhotoPasted: (uri: string) => void @@ -56,6 +57,7 @@ export const TextInput = React.forwardRef(function TextInputImpl( richtext, placeholder, webForceMinHeight, + hasRightPadding, isActive, setRichText, onPhotoPasted, @@ -307,7 +309,7 @@ export const TextInput = React.forwardRef(function TextInputImpl( return ( <> - + {/* @ts-ignore inputStyle is fine */} @@ -373,6 +375,9 @@ const styles = StyleSheet.create({ marginLeft: 8, marginBottom: 10, }, + rightPadding: { + paddingRight: 32, + }, dropContainer: { backgroundColor: '#0007', pointerEvents: 'none', -- cgit 1.4.1