forked from open-webui/open-webui
fix: styling
This commit is contained in:
parent
ffeae78b88
commit
a636e784bc
3 changed files with 20 additions and 2 deletions
|
@ -1,8 +1,15 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { DropdownMenu } from 'bits-ui';
|
import { DropdownMenu } from 'bits-ui';
|
||||||
|
import { createEventDispatcher } from 'svelte';
|
||||||
|
|
||||||
|
const dispatch = createEventDispatcher();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<DropdownMenu.Root>
|
<DropdownMenu.Root
|
||||||
|
onOpenChange={(state) => {
|
||||||
|
dispatch('change', state);
|
||||||
|
}}
|
||||||
|
>
|
||||||
<DropdownMenu.Trigger>
|
<DropdownMenu.Trigger>
|
||||||
<slot />
|
<slot />
|
||||||
</DropdownMenu.Trigger>
|
</DropdownMenu.Trigger>
|
||||||
|
|
|
@ -520,6 +520,9 @@
|
||||||
deleteHandler={() => {
|
deleteHandler={() => {
|
||||||
chatDeleteId = chat.id;
|
chatDeleteId = chat.id;
|
||||||
}}
|
}}
|
||||||
|
onClose={() => {
|
||||||
|
selectedChatId = null;
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
aria-label="Chat Menu"
|
aria-label="Chat Menu"
|
||||||
|
|
|
@ -8,9 +8,17 @@
|
||||||
|
|
||||||
export let renameHandler: Function;
|
export let renameHandler: Function;
|
||||||
export let deleteHandler: Function;
|
export let deleteHandler: Function;
|
||||||
|
|
||||||
|
export let onClose: Function;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Dropdown>
|
<Dropdown
|
||||||
|
on:change={(e) => {
|
||||||
|
if (e.detail === false) {
|
||||||
|
onClose();
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Tooltip content="More">
|
<Tooltip content="More">
|
||||||
<slot />
|
<slot />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
Loading…
Reference in a new issue