From d971e414fe3846ca88636665792b7c79ff09f917 Mon Sep 17 00:00:00 2001 From: jialin Date: Mon, 14 Oct 2024 10:32:00 +0800 Subject: [PATCH] fix(style): input text hover --- .../playground/components/ground-reranker.tsx | 2 +- src/pages/playground/style/input-list.less | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/pages/playground/components/ground-reranker.tsx b/src/pages/playground/components/ground-reranker.tsx index fdbe91d..832854e 100644 --- a/src/pages/playground/components/ground-reranker.tsx +++ b/src/pages/playground/components/ground-reranker.tsx @@ -137,7 +137,7 @@ const GroundReranker: React.FC = forwardRef((props, ref) => { setMessageList([ ...currentMessageRef.current, { - title: 'Result', + title: 'Results', content: result.results?.map((item: any) => { return { uid: item.index, diff --git a/src/pages/playground/style/input-list.less b/src/pages/playground/style/input-list.less index 4459c9d..c8694fa 100644 --- a/src/pages/playground/style/input-list.less +++ b/src/pages/playground/style/input-list.less @@ -12,6 +12,15 @@ transition: background-color 0.3s ease; border-bottom: 1px solid var(--ant-color-split); + &:hover { + background-color: var(--ant-color-fill-tertiary); + + .btn-group { + display: flex; + gap: 8px; + } + } + &:focus-within { background-color: transparent; } @@ -26,14 +35,5 @@ display: flex; gap: 8px; } - - &:hover { - background-color: var(--ant-color-fill-tertiary); - - .btn-group { - display: flex; - gap: 8px; - } - } } }