From 6d5769529fbfa72b349c3c0f89fd697bcebce79b Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 29 Dec 2022 14:50:53 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=AD=97=E4=BD=93=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../appTemplate/component/TemplateList.vue | 17 ++++++++++----- .../panel/template/component/TemplateList.vue | 21 ++++++++++++------- 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/frontend/src/views/panel/appTemplate/component/TemplateList.vue b/frontend/src/views/panel/appTemplate/component/TemplateList.vue index 16b8414afe..cc502c0606 100644 --- a/frontend/src/views/panel/appTemplate/component/TemplateList.vue +++ b/frontend/src/views/panel/appTemplate/component/TemplateList.vue @@ -47,7 +47,7 @@ @command="(type) => clickMore(type, ele)" > - + - {{ $t("commons.edit") }} + {{ $t('commons.edit') }} - {{ $t("commons.delete") }} + {{ $t('commons.delete') }} @@ -83,7 +83,7 @@ secondary @click="add()" > - {{ $t("panel.add_app_category") }} + {{ $t('panel.add_app_category') }} @@ -179,12 +179,14 @@ export default { .de-template-list { height: 100%; position: relative; + ul { margin: 16px 0 20px 0; padding: 0; overflow-y: auto; max-height: calc(100% - 90px); } + li { list-style: none; width: 100%; @@ -209,12 +211,14 @@ export default { color: #8f959e; margin-right: 9px; } + .more { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); display: none; + .el-icon-more { width: 24px; height: 24px; @@ -247,16 +251,19 @@ export default { li.select { background: var(--deWhiteHover, #3370ff); - color: var(--primary, #3370ff); + color: var(--TextActive, #f4f4f5); } + .de-btn-fix { position: absolute; bottom: 0; left: 0; } } + .de-template-dropdown { margin-top: 0 !important; + .popper__arrow { display: none !important; } diff --git a/frontend/src/views/panel/template/component/TemplateList.vue b/frontend/src/views/panel/template/component/TemplateList.vue index 87db45ec19..b52312dde6 100644 --- a/frontend/src/views/panel/template/component/TemplateList.vue +++ b/frontend/src/views/panel/template/component/TemplateList.vue @@ -47,7 +47,7 @@ @command="(type) => clickMore(type, ele)" > - + - {{ $t("panel.import") }} + {{ $t('panel.import') }} - {{ $t("panel.rename") }} + {{ $t('panel.rename') }} - {{ $t("panel.delete") }} + {{ $t('panel.delete') }} @@ -83,7 +83,7 @@ secondary @click="add()" > - {{ $t("panel.add_category") }} + {{ $t('panel.add_category') }} @@ -174,12 +174,14 @@ export default { .de-template-list { height: 100%; position: relative; + ul { margin: 16px 0 20px 0; padding: 0; overflow-y: auto; max-height: calc(100% - 90px); } + li { list-style: none; width: 100%; @@ -200,7 +202,7 @@ export default { overflow: hidden; text-overflow: ellipsis; - .text-template-overflow{ + .text-template-overflow { display: inline-block; max-width: 87%; overflow: hidden; @@ -212,12 +214,14 @@ export default { color: #8f959e; margin-right: 9px; } + .more { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); display: none; + .el-icon-more { width: 24px; height: 24px; @@ -250,16 +254,19 @@ export default { li.select { background: var(--deWhiteHover, #3370ff); - color: var(--primary, #3370ff); + color: var(--TextActive, #f4f4f5); } + .de-btn-fix { position: absolute; bottom: 0; left: 0; } } + .de-template-dropdown { margin-top: 0 !important; + .popper__arrow { display: none !important; }