From 24f5d1fead0778c809fb6e3c7a5c594e65742ee8 Mon Sep 17 00:00:00 2001 From: ProfBramble <1207107376@qq.com> Date: Thu, 19 Aug 2021 19:09:32 +0800 Subject: [PATCH 1/3] style: height is lost after adjusting the input text --- src/components/search/style.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/search/style.scss b/src/components/search/style.scss index 094b8cc8b..1c6550001 100644 --- a/src/components/search/style.scss +++ b/src/components/search/style.scss @@ -35,10 +35,12 @@ font-family: inherit; font-size: inherit; height: 24px; - line-height: 18px; + min-height: 23px; + line-height: 15px; outline: none; padding: 3px 62px 3px 4px; resize: none; + overflow: hidden; width: 100%; &:focus { From e16484d1257babc0c80b573dbbbdec2997e11411 Mon Sep 17 00:00:00 2001 From: ProfBramble <1207107376@qq.com> Date: Thu, 19 Aug 2021 19:51:46 +0800 Subject: [PATCH 2/3] style: height is lost after adjusting the input text --- src/components/search/style.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/search/style.scss b/src/components/search/style.scss index 1c6550001..651426b9d 100644 --- a/src/components/search/style.scss +++ b/src/components/search/style.scss @@ -32,15 +32,15 @@ border: 1px solid transparent; box-sizing: border-box; color: var(--input-foreground); + overflow: hidden; font-family: inherit; font-size: inherit; height: 24px; - min-height: 23px; line-height: 15px; + min-height: 23px; outline: none; padding: 3px 62px 3px 4px; resize: none; - overflow: hidden; width: 100%; &:focus { From 30810a047733bc4f21a7801fd6fd86ff0ac26d55 Mon Sep 17 00:00:00 2001 From: ProfBramble <1207107376@qq.com> Date: Thu, 19 Aug 2021 20:10:50 +0800 Subject: [PATCH 3/3] style: adjust style lint --- src/components/search/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/search/style.scss b/src/components/search/style.scss index 651426b9d..35b761b10 100644 --- a/src/components/search/style.scss +++ b/src/components/search/style.scss @@ -32,13 +32,13 @@ border: 1px solid transparent; box-sizing: border-box; color: var(--input-foreground); - overflow: hidden; font-family: inherit; font-size: inherit; height: 24px; line-height: 15px; min-height: 23px; outline: none; + overflow: hidden; padding: 3px 62px 3px 4px; resize: none; width: 100%;