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, }; } 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, + }), ); });