From 9e57125c96d16f58bea4db23b3edb29f97c2ad32 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Fri, 16 Jan 2026 03:55:18 -0800 Subject: [PATCH] reduce window minHeight to 120px (#1561) --- src/main/index.ts | 2 +- src/renderer/layouts/mobile-layout/mobile-layout.module.css | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/index.ts b/src/main/index.ts index 6f79b60ec..d2302a4f1 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -274,7 +274,7 @@ async function createWindow(first = true): Promise { frame: false, height: 900, icon: isWindows() ? getAssetPath('icons/icon.ico') : getAssetPath('icons/icon.png'), - minHeight: 640, + minHeight: 120, minWidth: 480, show: false, webPreferences: { diff --git a/src/renderer/layouts/mobile-layout/mobile-layout.module.css b/src/renderer/layouts/mobile-layout/mobile-layout.module.css index b29e9bdc3..66388b5a4 100644 --- a/src/renderer/layouts/mobile-layout/mobile-layout.module.css +++ b/src/renderer/layouts/mobile-layout/mobile-layout.module.css @@ -29,6 +29,12 @@ backdrop-filter: blur(10px); } +@media (height < 192px) { + .drawer-button { + display: none; + } +} + .main-content { position: relative; grid-area: main-content;