From f90bb3b0d583baae794e5b0a594f6228bc3d00a0 Mon Sep 17 00:00:00 2001 From: megaproxy Date: Sat, 9 May 2026 01:56:59 +0100 Subject: [PATCH] Layout: resizable window, fluid SVG ring, no scrollbars unless overflow, opaque bg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tauri.conf: resizable=true, min 220x240, default 300x320. BlockRing: SVG scales via viewBox, claims remaining vertical space. #app uses flex column with sections flex:0 0 auto — content reflows when window resized. Bumped --bg opacity from 0.78 to 0.93 so files behind the widget don't bleed through. Themed scrollbars subtle when they do appear. --- src-tauri/tauri.conf.json | 10 +++++----- src/components/App.svelte | 7 +++---- src/components/BlockRing.svelte | 32 +++++++++++++++++++++++++++----- src/styles.css | 17 ++++++++++++++--- 4 files changed, 49 insertions(+), 17 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 5fad84b..0d8548d 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -14,11 +14,11 @@ { "label": "main", "title": "Claude Usage", - "width": 280, - "height": 360, - "minWidth": 280, - "minHeight": 360, - "resizable": false, + "width": 300, + "height": 320, + "minWidth": 220, + "minHeight": 240, + "resizable": true, "decorations": false, "transparent": true, "alwaysOnTop": true, diff --git a/src/components/App.svelte b/src/components/App.svelte index eb29d45..3420b8b 100644 --- a/src/components/App.svelte +++ b/src/components/App.svelte @@ -92,11 +92,10 @@ diff --git a/src/components/BlockRing.svelte b/src/components/BlockRing.svelte index 8351ce6..26e02f2 100644 --- a/src/components/BlockRing.svelte +++ b/src/components/BlockRing.svelte @@ -1,8 +1,8 @@
- +