Skip to content

Commit

Permalink
style: disable window decoration and fixed a flex box issue from unocss
Browse files Browse the repository at this point in the history
  • Loading branch information
HuakunShen committed Nov 12, 2024
1 parent c700332 commit 292d03a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kksh/desktop",
"version": "0.1.10",
"version": "0.1.11",
"description": "",
"type": "module",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion apps/desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
"windows": [
{
"hiddenTitle": true,
"title": "Kunkun",
"width": 800,
"height": 600
"height": 600,
"decorations": false
}
],
"security": {
Expand Down
1 change: 0 additions & 1 deletion apps/desktop/src/routes/dance/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
size="icon"
onclick={goBack}
class="absolute left-2 top-2"
data-tauri-drag-region
>
<ArrowLeft class="size-4" />
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
} = $props()
</script>

<flex
<div
data-tauri-drag-region
class={cn("h-12 select-none items-center justify-between gap-4 border-t px-2", className)}
class={cn("flex select-none items-center justify-between gap-4 border-t px-2", className)}
>
<Avatar.Root class="p-1.5">
<Avatar.Root class="pointer-events-none p-1.5">
<Avatar.Image
src="/favicon.png"
alt="Kunkun Logo"
class="h-full select-none invert dark:invert-0"
/>
</Avatar.Root>
<flex class="items-center gap-1">
<div class="flex items-center gap-1">
{#if defaultAction}
<Button size="default" class="h-full" variant="ghost" onclick={onDefaultActionSelected}>
{defaultAction}
Expand All @@ -42,5 +42,5 @@
{#if actionPanel}
<ActionPanel {actionPanel} {onActionSelected} />
{/if}
</flex>
</flex>
</div>
</div>

0 comments on commit 292d03a

Please sign in to comment.