mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(Toaster): increase container height to prevent animation blink
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user