impr: remove dead code

This commit is contained in:
James Xylight committed 2025-07-30 15:11:02 -07:00
1 parent d27587673d
commit e987628cc1
7 files changed
+13 -108

No files matched your search

+1 -18
View File
@@ -1,16 +1,3 @@
<script module lang="ts">
export type Origin = keyof typeof popoverOrigins
export const popoverOrigins = {
'top-right': 'bottom-full right-0 origin-bottom-right',
'bottom-left': 'top-full origin-top-left',
'top-left': 'bottom-full left-0 origin-bottom-left',
'bottom-right': 'top-full right-0 origin-top-right',
'top-center': 'bottom-full -left-[450%] origin-bottom',
'bottom-center': 'top-full -left-[450%] origin-top',
}
</script>
<script lang="ts">
import {
flip,
@@ -68,11 +55,7 @@
middleware: middleware,
})
const customFloatingContent = (node: HTMLDivElement) => {
// if (!canUseContents) return
floatingContent(node)
}
const customFloatingContent = (node: HTMLDivElement) => floatingContent(node)
const customFloatingRef = (node: HTMLDivElement) => {
const n = node.children.item(0)