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 132561FF283 for ; Mon, 30 Jun 2025 10:24:42 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id E83121640A; Mon, 30 Jun 2025 10:25:18 +0200 (CEST) From: Dominik Csapak To: yew-devel@lists.proxmox.com Date: Mon, 30 Jun 2025 10:25:05 +0200 Message-Id: <20250630082509.1202308-16-d.csapak@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250630082509.1202308-1-d.csapak@proxmox.com> References: <20250630082509.1202308-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 v2 08/12] touch: scaffold: use direction independent positioning for the FAB 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" inset-inline-end instead of right and inset-block-end instead of bottom this ensures that it looks correct in RTL mode also use the PwtSpace enum instead of manual css styling Signed-off-by: Dominik Csapak --- src/touch/scaffold.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/touch/scaffold.rs b/src/touch/scaffold.rs index bd271d1..59f0024 100644 --- a/src/touch/scaffold.rs +++ b/src/touch/scaffold.rs @@ -5,7 +5,7 @@ use yew::prelude::*; use yew::virtual_dom::{Key, VComp, VNode}; use crate::css::FlexFit; -use crate::props::{ContainerBuilder, WidgetBuilder, WidgetStyleBuilder}; +use crate::props::{ContainerBuilder, PwtSpace, WidgetBuilder, WidgetStyleBuilder}; use crate::widget::{Column, Container}; use super::NavigationBar; @@ -101,8 +101,8 @@ impl Component for PwtScaffold { let positioned_fab = props.favorite_action_button.clone().map(|fab| { Container::new() .class("pwt-position-absolute") - .style("right", "var(--pwt-spacer-2)") - .style("bottom", "var(--pwt-spacer-2)") + .style("inset-inline-end", PwtSpace::Pwt(2)) + .style("inset-block-end", PwtSpace::Pwt(2)) .with_child(fab) }); -- 2.39.5 _______________________________________________ yew-devel mailing list yew-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel