Skip to content

Commit a0f29dd

Browse files
feat: Update ui styles
* feat: Refine ui styles * feat: Move fixed styles to style files
1 parent d57f001 commit a0f29dd

File tree

17 files changed

+2784
-12008
lines changed

17 files changed

+2784
-12008
lines changed

package-lock.json

Lines changed: 2733 additions & 11968 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@
6565
"license"
6666
],
6767
"dependencies": {
68-
"test_notification": "1.0.27"
68+
"test_notification": "1.0.20"
6969
}
7070
}

src/assets/dark/emptyIconDark.svg

Lines changed: 6 additions & 5 deletions
Loading
Lines changed: 6 additions & 5 deletions
Loading

src/components/HeaderComponent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
@click="handleClearAllNotification"
1313
@keydown="handleClearAllNotification"
1414
:style="{
15-
opacity: !enableClearAll ? 0.5 : 1,
16-
cursor: enableClearAll ? 'pointer' : 'default',
15+
opacity: !enableClearAll ? 0.4 : 1,
16+
cursor: enableClearAll ? 'pointer' : 'not-allowed',
1717
}"
1818
class="siren-sdk-header-right-container"
1919
>

src/components/NotificationCard.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<img
1313
:src="notification?.message?.avatar?.imageUrl ?? defaultAvatar"
1414
alt="avatar"
15+
class="siren-sdk-card-avatar"
1516
:style="styles.cardIconRound"
1617
v-if="!cardProps?.hideAvatar"
1718
/>
@@ -33,7 +34,7 @@
3334
:fill="styles?.timerIcon?.color"
3435
:size="String(styles?.timerIcon?.size)"
3536
/>
36-
<div :style="styles.dateStyle">
37+
<div :style="styles.dateStyle" class="siren-sdk-card-date-style">
3738
{{ generateElapsedTimeText(notification?.createdAt) }}
3839
</div>
3940
</div>

src/components/SirenInbox.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
:showNotifications="showNotifications"
3535
:noOfNotificationsPerFetch="noOfNotificationsPerFetch"
3636
:hideClearAll="hideClearAll"
37+
:cardProps="cardProps ?? { hideAvatar: false, showMedia: false }"
3738
>
3839
<template #loadMoreComponent>
3940
<slot name="loadMoreComponent" />

src/components/SirenPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<div v-for="notification in notificationsContent" :key="notification?.id">
3737
<slot name="customNotificationCard">
3838
<NotificationCard :notification="notification"
39-
:cardProps="{ hideAvatar: false, showMedia: true }"
39+
:cardProps="cardProps"
4040
:onNotificationCardClick="onNotificationCardClick"
4141
:deleteNotificationById="deleteNotificationById"
4242
:styles="styles" :darkMode="darkMode" />

src/stories/NotificationIcon.stories.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ const meta = {
1010
tags: ['autodocs'],
1111
argTypes: {
1212
badgeType: {
13-
description: 'To select the badge type',
14-
control: { type: 'select' },
15-
options: BadgeType
13+
description: 'To select the badge type'
1614
},
1715
darkMode: {
1816
description: 'Sets the theme mode for the icon component'

src/styles/card.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.siren-sdk-card-container {
22
display: grid;
33
grid-template-columns: max-content auto max-content;
4-
gap: 15px;
4+
gap: 16px;
55
}
66
.siren-sdk-hide-avatar-card-container {
77
display: grid;
@@ -17,7 +17,6 @@
1717
}
1818
.siren-sdk-delete-button {
1919
cursor: pointer;
20-
padding-right: 10px;
2120
}
2221
.siren-sdk-card-text-break {
2322
word-break: break-word;
@@ -40,4 +39,12 @@
4039
.siren-sdk-card-msg-body {
4140
margin-top: 5px;
4241
margin-bottom: 5px;
42+
font-weight: 400;
43+
}
44+
.siren-sdk-card-avatar{
45+
overflow: 'hidden',
4346
}
47+
48+
.siren-sdk-card-date-style{
49+
line-height: 16px;
50+
}

0 commit comments

Comments
 (0)