misc: update mono ui
This commit is contained in:
1 parent
e284ae14ef
commit
8129275fa7
7 files changed
+202
-201
No files matched your search
@@ -14,6 +14,7 @@
|
||||
|
||||
export let openOnHover: boolean = false
|
||||
export let open: boolean = false
|
||||
export let manual: boolean = false
|
||||
|
||||
export let placement: Placement = 'bottom-start'
|
||||
export let middleware: Middleware[] = [
|
||||
@@ -29,6 +30,7 @@
|
||||
{placement}
|
||||
{middleware}
|
||||
{strategy}
|
||||
{manual}
|
||||
{...$$restProps}
|
||||
bind:open
|
||||
popoverClass="backdrop-blur-xl rounded-xl w-full max-w-[280px]"
|
||||
@@ -40,13 +42,12 @@
|
||||
class="w-full max-w-[280px] origin-top-left
|
||||
max-h-[32rem] overflow-auto list-none shadow-lg rounded-xl"
|
||||
>
|
||||
<Material
|
||||
class="flex flex-col py-2 list-none bg-white/80 dark:bg-zinc-900/80 px-2 gap-px"
|
||||
color="distinct"
|
||||
padding="none"
|
||||
rounding="xl"
|
||||
<div
|
||||
class="flex flex-col py-2 list-none bg-white/80 dark:bg-zinc-900/80 px-2 gap-px
|
||||
rounded-xl
|
||||
border border-slate-200 dark:border-zinc-800 border-opacity-50"
|
||||
>
|
||||
<slot />
|
||||
</Material>
|
||||
</div>
|
||||
</div>
|
||||
</Popover>
|
||||
@@ -68,7 +68,7 @@
|
||||
on:click={(e) => {
|
||||
if (openOnHover) return
|
||||
|
||||
if (!el?.contains(e.target)) {
|
||||
if (!el?.contains(e.target) && open) {
|
||||
open = false
|
||||
}
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user