fix(Toaster): increase container height to prevent animation blink

This commit is contained in:
Benjamin Canac
2024-04-11 15:40:57 +02:00
parent d726e4ddac
commit 4dcb74e0a9

View File

@@ -72,7 +72,7 @@ const expanded = computed(() => props.expand || hovered.value)
const refs = ref<{ height: number }[]>([])
const height = computed(() => refs.value.reduce((acc, { height }) => acc + height + 16, 0) - 16)
const height = computed(() => refs.value.reduce((acc, { height }) => acc + height + 16, 0))
const frontHeight = computed(() => refs.value[refs.value.length - 1]?.height || 0)
function getOffset (index: number) {