From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 574D31FF09F for ; Tue, 01 Dec 2026 13:27:34 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id F185C2067C; Tue, 01 Dec 2026 13:27:33 +0100 (CET) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 01 Dec 2026 13:27:25 +0100 Message-Id: Subject: Re: [PATCH yew-widget-toolkit] widget: navigation drawer: match menu item indents with the icon width To: "Dominik Csapak" , X-Mailer: aerc 0.20.0 References: <20261201110250.105081-1-s.sterz@proxmox.com> <577ed58f-2aeb-499a-b7d8-163542c0fda7@proxmox.com> In-Reply-To: <577ed58f-2aeb-499a-b7d8-163542c0fda7@proxmox.com> From: "Shannon Sterz" X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1796128045274 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.522 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust 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: GGKEBUX53RGX7Z75VUBP6PSFEYLFSVQP X-Message-ID-Hash: GGKEBUX53RGX7Z75VUBP6PSFEYLFSVQP 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: On Tue Dec 1, 2026 at 12:42 PM CET, Dominik Csapak wrote: > hi, > > it's probably an improvement overall, but I'd like to not > hardcode the theme sizes here in the code. > > Another way to do this would be to define a css variable > for the navigation icons size, e.g. > > --nav-icon-font-size > > which could be used here: > > `width: calc(var(--nav-icon-font-size) * {});` > (or having a class that uses a --ident-level css variable > which we set as style) > > wdyt ? mainly wanted to send a minimal patch here so avoided that. but sure we can take that approach instead. ill send patches for that in a minute.