From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id E4CA91FF18C for ; Fri, 27 Jun 2025 14:08:57 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 67939136F1; Fri, 27 Jun 2025 14:09:34 +0200 (CEST) From: Dominik Csapak To: yew-devel@lists.proxmox.com Date: Fri, 27 Jun 2025 14:08:50 +0200 Message-Id: <20250627120859.3723554-9-d.csapak@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250627120859.3723554-1-d.csapak@proxmox.com> References: <20250627120859.3723554-1-d.csapak@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.022 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 Subject: [yew-devel] [PATCH yew-widget-toolkit 02/11] widget: button: don't hardcode icons font size X-BeenThere: yew-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Yew framework devel list at Proxmox List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Yew framework devel list at Proxmox Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: yew-devel-bounces@lists.proxmox.com Sender: "yew-devel" the button already sets a font size, and if that gets overwritten, hardcoding the icon size here does not get overwritten. By removing this here, we allow setting both the text and icon size from outside Signed-off-by: Dominik Csapak --- src/widget/button.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/button.rs b/src/widget/button.rs index 1dc924d..b324ca7 100644 --- a/src/widget/button.rs +++ b/src/widget/button.rs @@ -214,7 +214,7 @@ impl Component for PwtButton { if !icon_class.is_empty() { // Chromium fires onclick from nested elements, so we need to suppress that manually here children.push(html!{ - + }); } } -- 2.39.5 _______________________________________________ yew-devel mailing list yew-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel