From 2da7e875d7866cb40b2a5aacfa3f45e6e95f01fb Mon Sep 17 00:00:00 2001 From: AprilNEA Date: Fri, 31 Mar 2023 03:16:12 +0800 Subject: [PATCH] feat: optimized style, text to the left, minimum height --- app/components/home.module.scss | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/components/home.module.scss b/app/components/home.module.scss index ac8397e13..90a6718a8 100644 --- a/app/components/home.module.scss +++ b/app/components/home.module.scss @@ -169,24 +169,29 @@ transition: all ease 0.3s; opacity: 0; } + .chat-item-edit { position: absolute; - top: 11px; - right: -25px; + top: 12px; + right: -24px; transition: all ease 0.3s; opacity: 0; } + .chat-item-edit-input[type=text] { font-size: 14px; color: black; font-weight: bolder; padding: 0; box-sizing: border-box; - width: 100%; + width: auto; height: 100%; + min-height: 24px; border: 1px rgb(29,147,171) solid; outline: none; - + text-align: left; + overflow: auto; + resize: none; } .chat-item:hover > .chat-item-delete {