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 D48051FF283 for ; Mon, 30 Jun 2025 10:24:41 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A9203163D5; Mon, 30 Jun 2025 10:25:17 +0200 (CEST) From: Dominik Csapak To: yew-devel@lists.proxmox.com Date: Mon, 30 Jun 2025 10:24:57 +0200 Message-Id: <20250630082509.1202308-8-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-assets v2 7/7] don't use 'html[dir="rtl"]' for RTL behavior 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" we can either use the 'inline' variants, or use the ':dir()' selector that's available in chrome since 2023 Signed-off-by: Dominik Csapak --- new in v2 scss/_datatable.scss | 10 ++-------- scss/_menu.scss | 11 +++++------ 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/scss/_datatable.scss b/scss/_datatable.scss index 2a0d5c3..752c675 100644 --- a/scss/_datatable.scss +++ b/scss/_datatable.scss @@ -168,14 +168,8 @@ opacity: var(--pwt-tmp-trigger-opacity); transition: opacity 0.2s ease-in-out; - top: 0px; - bottom: 0px; - right: 0px; -} - -html[dir="rtl"] .pwt-datatable-header-menu-trigger { - right: auto; - left: 0px; + inset-block: 0px; + inset-inline-end: 0px; } .pwt-datatable-header-anchor { diff --git a/scss/_menu.scss b/scss/_menu.scss index 1f81a0f..2dcd3c3 100644 --- a/scss/_menu.scss +++ b/scss/_menu.scss @@ -121,11 +121,10 @@ ul.pwt-menu { margin-inline-start: var(--pwt-spacer-2); font-size: map-get($font-size, "title-medium"); line-height: map-get($line-height, "title-medium"); - } -} -/* change arrow icon direction */ -/* Note: :dir(rtl) only works with firefox, so we cant use that. */ -html[dir="rtl"] .pwt-menu-item-arrow { - transform: scaleX(-1); + /* change arrow icon direction */ + &:dir(rtl) { + transform: scaleX(-1); + } + } } -- 2.39.5 _______________________________________________ yew-devel mailing list yew-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel