From 91ad0179f97f9a6624398f911cf49a9f9eed47b6 Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 1 Sep 2023 18:32:18 +0800 Subject: [PATCH] fixed --- src/form/input.js | 1 + src/form/switch.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/form/input.js b/src/form/input.js index c0a4a2c..a51a85c 100644 --- a/src/form/input.js +++ b/src/form/input.js @@ -67,6 +67,7 @@ class Input extends Component { width: 0; height: 100%; padding: 0 8px; + line-height: 1; border: 0; border-radius: inherit; font: inherit; diff --git a/src/form/switch.js b/src/form/switch.js index 2916853..3b6f16c 100644 --- a/src/form/switch.js +++ b/src/form/switch.js @@ -32,7 +32,7 @@ class Switch extends Component { justify-content: center; align-items: center; min-width: 32px; - padding-right: 16px; + padding: 0 8px 0 2px; line-height: 1; -moz-user-select: none; user-select: none;