Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
feat(notifications-list): fixed height
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKanera committed Feb 10, 2021
1 parent 249f3ee commit 5b23676
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
17 changes: 16 additions & 1 deletion components/notifications-list/notifications-list.sass
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,29 @@
@apply flex flex-col items-center

width: 300px
max-height: 325px

.wrapper
@apply p-2
overflow-y: overlay

.wrapper::-webkit-scrollbar, .wrapper::-webkit-scrollbar-thumb
width: 23px
border-radius: 13px
background-clip: padding-box
border: 10px solid transparent

.wrapper::-webkit-scrollbar-thumb
box-shadow: inset 0 0 0 10px


.notification
@apply py-2 px-3
@apply w-full
@apply flex items-center justify-between

.action
@apply rounded-full text-ps-green cursor-pointer
@apply rounded-full text-ps-green cursor-pointer p-1

transition: all 250ms ease-in-out

Expand Down
9 changes: 5 additions & 4 deletions components/notifications-list/notifications-list.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<template lang="pug">
.notifications-list
.notification(v-for='(notification, i) in notifications', :key='i')
.message {{ notification.message }}
.action
close-icon(:size='18', @click='removeNotification(notification.id)')
.wrapper
.notification(v-for='(notification, i) in notifications', :key='i')
.message {{ notification.message }}
.action
close-icon(:size='18', @click='removeNotification(notification.id)')
</template>

<script lang="ts">
Expand Down
5 changes: 4 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ module.exports = {
},
});
addBase({
body: { backgroundColor: config('theme.colors.ps-primary'), overflowX: 'hidden' },
body: {
backgroundColor: config('theme.colors.ps-primary'),
overflowX: 'hidden',
},
'button:focus': {
outline: 'none',
'-webkit-tap-highlight-color': 'transparent',
Expand Down

0 comments on commit 5b23676

Please sign in to comment.