From d40b860d2aeb4a3d94526e23e684fbfc1727c447 Mon Sep 17 00:00:00 2001 From: YuShifan <894402575bt@gmail.com> Date: Tue, 10 Dec 2024 11:10:48 +0800 Subject: [PATCH] style(desktop): improve select dropdown item style --- src/assets/scss/element/element-reset.scss | 6 ++++++ src/components/ConnectionSelect.vue | 20 ++++++++++++------- .../assets/scss/element/element-reset.scss | 6 ++++++ 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/src/assets/scss/element/element-reset.scss b/src/assets/scss/element/element-reset.scss index b68f04b05..fbc926d35 100644 --- a/src/assets/scss/element/element-reset.scss +++ b/src/assets/scss/element/element-reset.scss @@ -262,10 +262,16 @@ border-top-color: var(--color-bg-messagebox); } } + +/* Select Dropdown Item */ .el-select-dropdown__item.hover, .el-select-dropdown__item:hover { background: var(--color-bg-item); } +.el-select-dropdown__item.selected { + font-weight: 500; +} + // Fix css style bug in open el-dialog .el-popup-parent--hidden { padding-right: 0px !important; diff --git a/src/components/ConnectionSelect.vue b/src/components/ConnectionSelect.vue index 23a7a1eeb..f55da475b 100644 --- a/src/components/ConnectionSelect.vue +++ b/src/components/ConnectionSelect.vue @@ -1,9 +1,17 @@