From 385db8d1afe24b5d80172cb5ef3818f6beb30811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E8=89=B3=E5=85=B5?= Date: Tue, 14 Apr 2026 17:22:18 +0800 Subject: [PATCH 1/2] fix: use logical suffix offset for rtl overflow --- src/Overflow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Overflow.tsx b/src/Overflow.tsx index a3e4bd7..e4e4bf0 100644 --- a/src/Overflow.tsx +++ b/src/Overflow.tsx @@ -318,8 +318,8 @@ function Overflow( if (suffixFixedStart !== null && shouldResponsive) { suffixStyle = { position: 'absolute', - left: suffixFixedStart, top: 0, + insetInlineStart: suffixFixedStart, }; } From 901c1f72f267cdaab8ddae33a2d4961cce627e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E8=89=B3=E5=85=B5?= Date: Tue, 14 Apr 2026 17:39:26 +0800 Subject: [PATCH 2/2] test: align responsive suffix assertion --- tests/responsive.spec.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/responsive.spec.tsx b/tests/responsive.spec.tsx index 8ec42b4..c7fb13d 100644 --- a/tests/responsive.spec.tsx +++ b/tests/responsive.spec.tsx @@ -186,7 +186,11 @@ describe('Overflow.Responsive', () => { wrapper.initSize(100, 20); expect(wrapper.findSuffix().props().style).toEqual( - expect.objectContaining({ position: 'absolute', top: 0, left: 80 }), + expect.objectContaining({ + position: 'absolute', + top: 0, + insetInlineStart: 80, + }), ); });