Skip to content

Commit 949415d

Browse files
authored
fix: core ui component alignment fixes (#3677)
## 🎯 Goal This PR fixes two small alignment bugs: - The `iOS` limited button for the `AttachmentMediaPicker` when system font size is set to max - The alignment overlap specifically for `lg` versions of `GroupAvatar` ## 🛠 Implementation details <!-- Provide a description of the implementation --> ## 🎨 UI Changes <!-- Add relevant screenshots --> <details> <summary>iOS</summary> <table> <thead> <tr> <td>Before</td> <td>After</td> </tr> </thead> <tbody> <tr> <td> <!--<img src="" /> --> </td> <td> <!--<img src="" /> --> </td> </tr> </tbody> </table> </details> <details> <summary>Android</summary> <table> <thead> <tr> <td>Before</td> <td>After</td> </tr> </thead> <tbody> <tr> <td> <!--<img src="" /> --> </td> <td> <!--<img src="" /> --> </td> </tr> </tbody> </table> </details> ## 🧪 Testing <!-- Explain how this change can be tested (or why it can't be tested) --> ## ☑️ Checklist - [ ] I have signed the [Stream CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) (required) - [ ] PR targets the `develop` branch - [ ] Documentation is updated - [ ] New code is tested in main example apps, including all possible scenarios - [ ] SampleApp iOS and Android - [ ] Expo iOS and Android
1 parent df48951 commit 949415d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

package/src/components/AttachmentPicker/components/AttachmentMediaPicker/AttachmentPickerItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ const useStyles = () => {
238238
fontWeight: primitives.typographyFontWeightSemiBold,
239239
fontSize: primitives.typographyFontSizeSm,
240240
color: semantics.textTertiary,
241+
textAlign: 'center',
241242
},
242243
});
243244
};

package/src/components/ui/Avatar/AvatarGroup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const sizes = {
3636
height: 48,
3737
},
3838
lg: {
39-
width: 44,
40-
height: 44,
39+
width: 40,
40+
height: 40,
4141
},
4242
};
4343

0 commit comments

Comments
 (0)