Skip to content

Commit 1095d1d

Browse files
committed
feat: improve in-app notifiation styles
1 parent ec8ca51 commit 1095d1d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/components/Notification.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,23 @@ export const Notification = observer(
3434
flexDirection: 'row',
3535
alignSelf: 'center',
3636
alignItems: 'center',
37+
justifyContent: 'space-between',
3738
width: '90%',
3839
backgroundColor: currentTheme.background,
3940
borderRadius: commonValues.sizes.small,
4041
minHeight: 40,
4142
padding: commonValues.sizes.medium,
43+
boxShadow: [
44+
{
45+
color: '#00000060',
46+
blurRadius: commonValues.sizes.large,
47+
},
48+
],
4249
}}
4350
onPress={() => openChannel()}>
4451
<View
4552
style={{
53+
alignItems: 'center',
4654
flexDirection: 'row',
4755
overflow: 'hidden',
4856
}}>

src/components/views/ChannelView.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ const RegularChannelView = observer(({channel}: {channel: Channel}) => {
152152
onUsernamePress={m => {
153153
const currentText = app.getMessageBoxInput();
154154
app.setMessageBoxInput(
155-
`${currentText}${
156-
currentText.length > 0 ? ' ' : ''
157-
}<@${m.author?._id}>`,
155+
`${currentText}${currentText.length > 0 ? ' ' : ''}<@${
156+
m.author?._id
157+
}>`,
158158
);
159159
}}
160160
/>

0 commit comments

Comments
 (0)