From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 62E181FF13C for ; Thu, 05 Mar 2026 12:21:00 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7A1B9608F; Thu, 5 Mar 2026 12:22:05 +0100 (CET) From: Shannon Sterz To: yew-devel@lists.proxmox.com Subject: [PATCH yew-widget-toolkit-assets 1/3] dialog: allow resize handle to fill the padding space in dialogs Date: Thu, 5 Mar 2026 12:21:55 +0100 Message-ID: <20260305112158.220557-2-s.sterz@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260305112158.220557-1-s.sterz@proxmox.com> References: <20260305112158.220557-1-s.sterz@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1772709694805 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.096 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: ANSFRC53O4DBGRNOSMIXMN7WJUQ27G3F X-Message-ID-Hash: ANSFRC53O4DBGRNOSMIXMN7WJUQ27G3F X-MailFrom: s.sterz@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Yew framework devel list at Proxmox List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: instead of hard-coding a resize handle size 5px scale them along with the spacing used by elements inside dialogs. this will allow these handles to take up more space in themes that use more relaxed densities than "Compact". especially on hi-dpi displays hitting a 5px by 5px area for corner handles is rather tricky. Signed-off-by: Shannon Sterz --- scss/_dialog.scss | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scss/_dialog.scss b/scss/_dialog.scss index 8121b75..94f8e62 100644 --- a/scss/_dialog.scss +++ b/scss/_dialog.scss @@ -57,7 +57,7 @@ dialog.pwt-outer-dialog { &.north-west, &.south-east, &.south-west { - width: 5px; + width: var(--pwt-spacer-2); } &.north, @@ -66,34 +66,34 @@ dialog.pwt-outer-dialog { &.north-west, &.south-east, &.south-west { - height: 5px; + height: var(--pwt-spacer-2); } &.west { - top: 5px; - bottom: 5px; + top: var(--pwt-spacer-2); + bottom: var(--pwt-spacer-2); left: 0px; cursor: w-resize; } &.east { - top: 5px; - bottom: 5px; + top: var(--pwt-spacer-2); + bottom: var(--pwt-spacer-2); right: 0px; cursor: e-resize; } &.north { top: 0px; - left: 5px; - right: 5px; + left: var(--pwt-spacer-2); + right: var(--pwt-spacer-2); cursor: n-resize; } &.south { bottom: 0px; - left: 5px; - right: 5px; + left: var(--pwt-spacer-2); + right: var(--pwt-spacer-2); cursor: s-resize; } -- 2.47.3