@ -333,14 +333,14 @@ const Notification: React.FC<INotification> = (props) => {
|
||||
<Emoji
|
||||
emoji={notification.emoji}
|
||||
src={notification.emoji_url || undefined}
|
||||
className='size-4 flex-none'
|
||||
className='⁂-notification__icon ⁂-notification__icon--emoji'
|
||||
/>
|
||||
);
|
||||
} else if (icons[displayedType]) {
|
||||
return (
|
||||
<Icon
|
||||
src={icons[displayedType]!}
|
||||
className='flex-none text-primary-600 dark:text-primary-400'
|
||||
className='⁂-notification__icon'
|
||||
/>
|
||||
);
|
||||
} else {
|
||||
|
||||
@ -1,22 +1,39 @@
|
||||
@use 'mixins';
|
||||
|
||||
.⁂-notification {
|
||||
@apply flex flex-col gap-2 p-4;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
padding: 1rem;;
|
||||
|
||||
&__header {
|
||||
@apply flex items-center gap-3;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
&__info {
|
||||
@apply min-w-0 flex-1;
|
||||
min-width: 0;
|
||||
flex: 1 1 0%
|
||||
}
|
||||
|
||||
&__icon {
|
||||
flex: none;
|
||||
@apply text-primary-600 dark:text-primary-400;
|
||||
|
||||
&--emoji {
|
||||
height: 1rem;
|
||||
width: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
&__timestamp {
|
||||
@apply ml-auto flex-none;
|
||||
flex: none;
|
||||
margin-left: auto;
|
||||
@include mixins.text($size: xs, $theme: muted, $truncate: true);
|
||||
}
|
||||
|
||||
.status__wrapper {
|
||||
@apply p-0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user