Skip to content

Commit 5c7fab8

Browse files
authored
style: 面板样式优化 (#7026)
1 parent 0655437 commit 5c7fab8

File tree

3 files changed

+33
-12
lines changed

3 files changed

+33
-12
lines changed

frontend/src/components/system-upgrade/index.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@
5454
<DrawerHeader :header="$t('commons.button.upgrade')" :back="handleClose" />
5555
</template>
5656
<div class="panel-MdEditor">
57-
<el-alert :closable="false">
58-
<span class="line-height">{{ $t('setting.versionHelper') }}</span>
59-
<li class="line-height">{{ $t('setting.versionHelper1') }}</li>
60-
<li class="line-height">{{ $t('setting.versionHelper2') }}</li>
61-
</el-alert>
6257
<div class="default-theme" style="margin-left: 20px">
6358
<h2 class="inline-block">{{ $t('app.version') }}</h2>
6459
</div>
@@ -229,4 +224,7 @@ onMounted(() => {
229224
:deep(.el-link__inner) {
230225
font-weight: 400;
231226
}
227+
:deep(.md-editor-dark) {
228+
background-color: var(--panel-main-bg-color-9);
229+
}
232230
</style>

frontend/src/layout/components/Sidebar/components/Collapse.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const isCollapse = computed(() => menuStore.isCollapse);
2323
}
2424
2525
.collapse-icon {
26+
color: var(--panel-main-bg-color-1);
2627
margin-left: 25px;
2728
&:hover {
2829
color: $primary-color;

frontend/src/views/database/mysql/check/index.vue

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,25 @@
22
<el-dialog
33
v-model="open"
44
:title="$t('app.checkTitle')"
5-
width="50%"
5+
width="40%"
66
:close-on-click-modal="false"
77
:destroy-on-close="true"
88
>
99
<el-row>
1010
<el-col :span="20" :offset="2" v-if="open">
1111
<el-alert
1212
type="error"
13-
:description="$t('app.deleteHelper', [$t('app.database')])"
13+
:title="$t('app.deleteHelper', [$t('app.database')])"
1414
center
1515
show-icon
1616
:closable="false"
1717
/>
18-
<br />
19-
<el-descriptions border :column="1">
20-
<el-descriptions-item>
18+
<el-descriptions :column="1" border>
19+
<el-descriptions-item label-class-name="label" class-name="content" min-width="60px">
2120
<template #label>
22-
<a href="javascript:void(0);" @click="toApp()">{{ $t('app.app') }}</a>
21+
<a href="javascript:void(0);" class="content-a" @click="toApp()">{{ $t('app.app') }}</a>
2322
</template>
24-
{{ installData.join(',') }}
23+
<pre>{{ installData.join('\n') }}</pre>
2524
</el-descriptions-item>
2625
</el-descriptions>
2726
</el-col>
@@ -41,6 +40,7 @@ let open = ref(false);
4140
4241
const acceptParams = (props: InstallProps) => {
4342
installData.value = props.items;
43+
installData.value.push('sdsfhjdghjdgfhsdgfhjsgfkhjsdgfhjasgdfhjasgdfjhsagdfhjsagdfashdfgaskhjdfgaskjhdf');
4444
open.value = true;
4545
};
4646
@@ -52,3 +52,25 @@ defineExpose({
5252
acceptParams,
5353
});
5454
</script>
55+
56+
<style scoped>
57+
:deep(.label) {
58+
background: var(--panel-main-bg-color-10) !important;
59+
}
60+
:deep(.content) {
61+
background: var(--panel-main-bg-color-10);
62+
}
63+
:deep(.content-a) {
64+
color: var(--panel-color-primary);
65+
}
66+
pre {
67+
margin: 0;
68+
width: 350px;
69+
overflow: hidden;
70+
text-overflow: ellipsis;
71+
}
72+
:deep(.el-descriptions) {
73+
overflow: hidden;
74+
text-overflow: ellipsis;
75+
}
76+
</style>

0 commit comments

Comments
 (0)