Skip to content

Commit

Permalink
Clamp error in flash notification (snapshot-labs#4132)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuveth authored Aug 10, 2023
1 parent 4b8ff94 commit af34cba
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/components/TheFlashNotification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ const { items } = useFlashNotification();
:class="`!bg-${item.type}`"
>
<div class="flex items-center gap-2">
<i-ho-x v-if="item.type === 'red'" class="text-base" />
<i-ho-check v-if="item.type === 'green'" class="text-base" />
<span>{{ item.message }}</span>
<i-ho-x v-if="item.type === 'red'" class="shrink-0 text-base" />
<i-ho-check
v-if="item.type === 'green'"
class="shrink-0 text-base"
/>
<span class="line-clamp-1 text-left">{{ item.message }}</span>
</div>

<i-ho-x class="text-base" @click="item.remove()" />
<i-ho-x class="shrink-0 text-base" @click="item.remove()" />
</BaseButton>
</div>
</TransitionGroup>
Expand Down

0 comments on commit af34cba

Please sign in to comment.