From 278f74326c9c2bbaa33684408cd5e09775e018da Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Tue, 26 May 2026 22:00:43 +0200 Subject: [PATCH] Enable native window resizing and make the glassmorphic widget fully responsive with minimum bounds --- widget/src-tauri/tauri.conf.json | 4 +++- widget/src/style.css | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/widget/src-tauri/tauri.conf.json b/widget/src-tauri/tauri.conf.json index 8fb1913..ca069a9 100644 --- a/widget/src-tauri/tauri.conf.json +++ b/widget/src-tauri/tauri.conf.json @@ -58,9 +58,11 @@ { "fullscreen": false, "height": 520, - "resizable": false, + "resizable": true, "title": "TodoFlow", "width": 340, + "minWidth": 280, + "minHeight": 400, "decorations": false, "transparent": true, "alwaysOnTop": false, diff --git a/widget/src/style.css b/widget/src/style.css index eb24ebf..fb769ab 100644 --- a/widget/src/style.css +++ b/widget/src/style.css @@ -45,10 +45,12 @@ body { overflow: hidden; } -/* --- LE CONTAINER DU WIDGET (GLASSMORPHISM ABSOLU) --- */ +/* --- LE CONTAINER DU WIDGET (GLASSMORPHISM ABSOLU RESONSIVE) --- */ .todo-widget { - width: 340px; - height: 520px; + width: 100%; + height: 100%; + min-width: 280px; + min-height: 400px; background: var(--bg-widget); backdrop-filter: blur(40px) saturate(150%); -webkit-backdrop-filter: blur(40px) saturate(150%);