From db682a2a960d3fe4bf7de2f00b3c7a0a532d7003 Mon Sep 17 00:00:00 2001 From: si3nloong Date: Sun, 26 Dec 2021 22:20:23 +0800 Subject: [PATCH] fix: quantity component CSS --- components/quantity/src/Quantity.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/quantity/src/Quantity.svelte b/components/quantity/src/Quantity.svelte index da2bd77c..eb8d7cb8 100644 --- a/components/quantity/src/Quantity.svelte +++ b/components/quantity/src/Quantity.svelte @@ -118,14 +118,14 @@ cursor: inherit; border: none; margin: 0; - padding: 0; + padding: 0 5px; background: inherit; outline: none; appearance: textfield; height: var(--input-height, 30px); color: var(--theme-color); text-align: center; - width: 65px; + min-width: 65px; border-radius: inherit; } @@ -134,7 +134,7 @@ padding: 0 5px; input[type="number"] { - width: 35px; + min-width: 35px; &::-webkit-inner-spin-button, &::-webkit-outer-spin-button {