From b0e7af83af1058f65289607af49439867ec860da Mon Sep 17 00:00:00 2001 From: yuanchongjun Date: Mon, 28 Nov 2022 14:41:32 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=20-=20=E6=B8=85=E9=99=A4slider=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=A0=B7=E5=BC=8F=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?sound=E9=9D=A2=E6=9D=BFauto-px?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/base/auto-px-style.ts | 3 +++ src/components/slider/slider-styles.ts | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/base/auto-px-style.ts b/src/components/base/auto-px-style.ts index 5ea6b69..a62a3a9 100644 --- a/src/components/base/auto-px-style.ts +++ b/src/components/base/auto-px-style.ts @@ -26,6 +26,7 @@ export const autoPxStyle: CSSResult = css` --auto-24px: calc(24px / var(--hostDevicePixelRatio)); --auto-25_6px: calc(25.6px / var(--hostDevicePixelRatio)); --auto-26px: calc(26px / var(--hostDevicePixelRatio)); + --auto-27px: calc(27px / var(--hostDevicePixelRatio)); --auto-28px: calc(28px / var(--hostDevicePixelRatio)); --auto-30px: calc(30px / var(--hostDevicePixelRatio)); --auto-31px: calc(31px / var(--hostDevicePixelRatio)); @@ -60,6 +61,7 @@ export const autoPxStyle: CSSResult = css` --auto-71px: calc(70px / var(--hostDevicePixelRatio)); --auto-72px: calc(72px / var(--hostDevicePixelRatio)); --auto-74px: calc(66px / var(--hostDevicePixelRatio)); + --auto-75px: calc(75px / var(--hostDevicePixelRatio)); --auto-76px: calc(76px / var(--hostDevicePixelRatio)); --auto-77px: calc(77px / var(--hostDevicePixelRatio)); --auto-80px: calc(80px / var(--hostDevicePixelRatio)); @@ -134,6 +136,7 @@ export const autoPxStyle: CSSResult = css` --auto-524px: calc(520px / var(--hostDevicePixelRatio)); --auto-534px: calc(534px / var(--hostDevicePixelRatio)); --auto-543px: calc(543px / var(--hostDevicePixelRatio)); + --auto-568px: calc(568px / var(--hostDevicePixelRatio)); --auto-596px: calc(596px / var(--hostDevicePixelRatio)); --auto-598px: calc(598px / var(--hostDevicePixelRatio)); --auto-606px: calc(606px / var(--hostDevicePixelRatio)); diff --git a/src/components/slider/slider-styles.ts b/src/components/slider/slider-styles.ts index c0f50da..781f949 100644 --- a/src/components/slider/slider-styles.ts +++ b/src/components/slider/slider-styles.ts @@ -8,7 +8,6 @@ export const sharedStyles: CSSResult = css` } .content { height: var(--auto-6px); - margin: 0 var(--auto-120px); position: relative; top: 50%; transform: translateY(-50%);