A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: toast has spacing and overlap issues
aminnausin3864a0b7ed8c
diff --git a/resources/js/components/cedar-ui/toast/ToastNotification.vue b/resources/js/components/cedar-ui/toast/ToastNotification.vueindex a431dd44..65327dda 100644--- a/resources/js/components/cedar-ui/toast/ToastNotification.vue+++ b/resources/js/components/cedar-ui/toast/ToastNotification.vue@@ -147,10 +147,10 @@ onBeforeUnmount(() => {:leave-from-class="`opacity-100 translate-y-0`":leave-to-class="`opacity-0 ${leaveDirection}`">- <span+ <div:class="[- { 'xs:p-3 p-2': !html, 'p-0': html },- 'flex flex-col items-start rounded-md backdrop-blur-lg',+ { 'p-3 py-4': !html, 'p-0': html },+ 'flex items-start gap-1 rounded-md backdrop-blur-lg','group relative select-text','transition-all duration-300 ease-out','bg-overlay-t text-foreground-0 shadow-[0_5px_15px_-3px_rgb(0_0_0/0.08)]',@@ -160,32 +160,46 @@ onBeforeUnmount(() => {><divv-if="!html"- class="flex items-center"- :class="{- 'text-success': type === 'success',- 'text-info': type === 'info',- 'text-warning': type === 'warning',- 'text-danger': type === 'danger',- 'text-foreground-0': type === 'default',- }"+ :class="[+ {+ 'text-success': type === 'success',+ 'text-info': type === 'info',+ 'text-warning': type === 'warning',+ 'text-danger-1': type === 'danger',+ 'text-foreground-0': type === 'default',+ },+ ]">- <CedarSuccess v-show="type === 'success'" class="toast-icon" />- <CedarInfo v-show="type === 'info'" class="toast-icon" />- <CedarWarning v-show="type === 'warning'" class="toast-icon" />- <CedarDanger v-show="type === 'danger'" class="toast-icon" />- <p class="text-[13px] leading-none font-medium" :title="title">{{ title }}</p>+ <CedarSuccess v-if="type === 'success'" class="toast-icon" />+ <CedarInfo v-if="type === 'info'" class="toast-icon" />+ <CedarWarning v-if="type === 'warning'" class="toast-icon" />+ <CedarDanger v-if="type === 'danger'" class="toast-icon" /></div>- <p- v-show="description"- :class="{ 'pl-4': type !== 'default' }"- class="scrollbar-minimal mt-1.5 max-h-32 min-h-3 w-full overflow-y-auto pe-2 text-xs leading-tight wrap-break-word whitespace-pre-wrap opacity-70"- >- {{ description }}- </p>+ <div class="space-y-1.5">+ <h6+ :class="[+ 'line-clamp-1 pe-6 text-[13px] leading-none font-medium',+ {+ 'text-success': type === 'success',+ 'text-info': type === 'info',+ 'text-warning': type === 'warning',+ 'text-danger-1': type === 'danger',+ 'text-foreground-0': type === 'default',+ },+ ]"+ :title="title"+ >+ {{ title }}+ </h6>+ <p v-if="description" class="scrollbar-minimal max-h-32 w-full overflow-y-auto pe-2 text-xs leading-tight break-all whitespace-pre-wrap opacity-70">+ {{ description }}+ </p>+ </div>+<template v-if="!html"><ButtonCorner@click="onClose"- class="text-foreground-2 hover:text-foreground-1 dark:text-danger-3 hover:bg-surface-1 dark:bg-surface-1/50 dark:hover:bg-surface-1 dark:hover:text-danger absolute right-0 mr-2.5 p-1.5"+ class="text-foreground-2 hover:text-foreground-1 dark:text-danger-3 hover:bg-surface-1 dark:bg-surface-1/50 dark:hover:bg-surface-1 dark:hover:text-danger-1 absolute right-0 mr-2.5 size-6 p-1.5"label="Close Toast":class="cn('cursor-pointer rounded-full opacity-0', {@@ -198,7 +212,7 @@ onBeforeUnmount(() => {:use-default-style="false"/></template>- </span>+ </div></Transition></li></template>@@ -206,7 +220,7 @@ onBeforeUnmount(() => {@reference '../../../../css/app.css';.toast-icon {- @apply mr-1 -ml-1 size-4 shrink-0;+ @apply size-4 shrink-0;}.toast {diff --git a/resources/js/views/ProfileView.vue b/resources/js/views/ProfileView.vueindex bd807659..afa10b16 100755--- a/resources/js/views/ProfileView.vue+++ b/resources/js/views/ProfileView.vue@@ -23,14 +23,18 @@ onMounted(() => {<template #content><section id="content-profile" class="flex flex-col gap-3"><ProfileHeader class="ring-r-default/5 rounded-xl shadow-md ring-1" />- <div id="user-info" class="bg-surface-2 text-foreground-1 ring-r-default/5 z-3 flex w-full flex-col justify-between gap-4 rounded-xl p-3 text-sm shadow-md ring-1">+ <div id="user-info" class="bg-surface-2 ring-r-default/5 z-3 flex w-full flex-col justify-between gap-4 rounded-xl p-3 text-sm shadow-md ring-1"><div class="flex flex-wrap items-center gap-2"><h3 class="flex-1 text-base">Who?</h3><div class="flex flex-wrap gap-2">- <ButtonText text="Add Friend" @click="toast.error('Friend not added...', { description: 'You do not know why...' })" class="flex-10" />+ <ButtonText+ text="Add Friend"+ @click="toast.error('Friend not added...', { description: 'You do not know why...', life: 10000 })"+ class="flex-10 dark:ring-neutral-700"+ /><ButtonTexttext="Block"- class="flex-1"+ class="flex-1 dark:ring-neutral-700"@click="() => {blockedFriends += 1;@@ -41,7 +45,7 @@ onMounted(() => {</div></div>- <div class="flex flex-col gap-1">+ <div class="text-foreground-1 flex flex-col gap-1"><p class="whitespace-pre">{{`Recently Watched: