Skip to content

Commit d881b1d

Browse files
committed
fix: increase native attachment picker button sizes for better touchability
1 parent feea8ee commit d881b1d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

package/src/components/MessageInput/components/NativeAttachmentPicker.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ type NativeAttachmentPickerProps = {
1919
attachButtonLayoutRectangle?: LayoutRectangle;
2020
};
2121

22-
const TOP_PADDING = 4;
23-
const ATTACH_MARGIN_BOTTOM = 4;
22+
const TOP_PADDING = 8;
23+
const ATTACH_MARGIN_BOTTOM = 8;
2424

2525
export const NativeAttachmentPicker = ({
2626
attachButtonLayoutRectangle,
2727
onRequestedClose,
2828
}: NativeAttachmentPickerProps) => {
2929
const size = attachButtonLayoutRectangle?.width ?? 0;
30-
const attachButtonItemSize = 40;
31-
const NUMBER_OF_BUTTONS = 3;
30+
const attachButtonItemSize = 48;
31+
const NUMBER_OF_BUTTONS = 4;
3232
const {
3333
theme: {
3434
colors: { grey_whisper },
@@ -200,7 +200,6 @@ const styles = StyleSheet.create({
200200
container: {
201201
alignItems: 'center',
202202
justifyContent: 'flex-end',
203-
paddingTop: TOP_PADDING,
204203
position: 'absolute',
205204
},
206205
});

0 commit comments

Comments
 (0)