feat: fix bugs with layout + window controls (#5855)

This commit is contained in:
Calum H.
2026-04-18 23:29:22 +01:00
committed by GitHub
parent 2236dd8ade
commit 9b3fe6390e
4 changed files with 48 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
import { computed, ref } from 'vue'
import { computed, type Ref, ref } from 'vue'
const isClient = typeof window !== 'undefined'
const stack: symbol[] = []
@@ -33,6 +33,7 @@ export function useModalStack() {
}
const hasModal = computed(() => stackSizeRef.value > 0)
const stackCount: Readonly<Ref<number>> = stackSizeRef
return { push, pop, isTopmost, stackSize, hasModal }
return { push, pop, isTopmost, stackSize, hasModal, stackCount }
}