Skip to content

Commit a774a62

Browse files
committed
fix: Style optimization
1 parent c530411 commit a774a62

File tree

8 files changed

+122
-20
lines changed

8 files changed

+122
-20
lines changed
Lines changed: 33 additions & 0 deletions
Loading
Lines changed: 35 additions & 0 deletions
Loading

frontend/src/components/layout/LayoutDsl.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<script lang="ts" setup>
22
import { ref, computed } from 'vue'
33
import Menu from './Menu.vue'
4+
import LOGOCustom from '@/assets/svg/LOGO-custom.svg'
5+
import custom_small from '@/assets/svg/logo-custom_small.svg'
46
import Workspace from './Workspace.vue'
57
import Person from './Person.vue'
68
import LOGO from '@/assets/LOGO.svg'
@@ -51,6 +53,10 @@ const showSysmenu = computed(() => {
5153
/>
5254
<img v-else width="130" height="31" :src="logo_blue" style="margin-bottom: 6px" />
5355
</template>
56+
<template v-else-if="appearanceStore.themeColor === 'custom'">
57+
<custom_small v-if="collapse" style="margin: 0 0 6px 5px"></custom_small>
58+
<LOGOCustom v-else style="margin-bottom: 6px"></LOGOCustom>
59+
</template>
5460
<template v-else>
5561
<LOGO_fold v-if="collapse" style="margin: 0 0 6px 5px"></LOGO_fold>
5662
<LOGO v-else style="margin-bottom: 6px"></LOGO>

frontend/src/style.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ strong {
350350

351351
.icon-primary.icon-primary {
352352
color: var(--ed-color-primary);
353+
fill: var(--ed-color-primary);
353354
}
354355

355356
.icon-primary_15_d.icon-primary_15_d {
@@ -390,3 +391,11 @@ strong {
390391
}
391392
}
392393
}
394+
395+
.ed-icon.done {
396+
svg {
397+
path {
398+
fill: var(--ed-color-primary);
399+
}
400+
}
401+
}

frontend/src/views/system/appearance/index.vue

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,7 @@
148148
<div class="navigate-preview" style="height: 425px">
149149
<div class="navigate-head">
150150
<div class="header-sql">
151-
<img
152-
v-if="navigate"
153-
class="logo"
154-
:src="navigate.startsWith('blob') ? navigate : baseUrl + navigate"
155-
alt=""
156-
/>
151+
<custom_small v-if="themeColor === 'custom'" class="logo" />
157152

158153
<img
159154
v-else-if="isBlue"
@@ -224,6 +219,7 @@
224219

225220
<script lang="ts" setup>
226221
import logo from '@/assets/LOGO.svg'
222+
import custom_small from '@/assets/svg/LOGO-custom.svg'
227223
import { ref, unref, reactive, onMounted, onUnmounted, nextTick, computed } from 'vue'
228224
import {
229225
type FormInstance,
@@ -268,8 +264,6 @@ const COLOR_PANEL = [
268264
'#000000',
269265
'#FFFFFF',
270266
]
271-
const basePath = import.meta.env.VITE_API_BASEPATH
272-
const baseUrl = basePath + '/system/appearance/image/'
273267
const fileList = ref<(UploadUserFile & { flag: string })[]>([])
274268
const navigateBg = ref('dark')
275269
const themeColor = ref('default')

frontend/src/views/system/embedded/SetUi.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ const init = () => {
9797
const giveUp = () => {
9898
resetSqlBotForm(false)
9999
init()
100+
dialogVisible.value = false
100101
}
101102
102103
const emits = defineEmits(['refresh'])
@@ -201,7 +202,6 @@ const clearFiles = (array?: string[]) => {
201202
}
202203
203204
const open = (row: any) => {
204-
console.log(JSON.parse(row.configuration))
205205
rawData = JSON.parse(row.configuration)
206206
currentId.value = row.id
207207
dialogVisible.value = true

frontend/src/views/system/permission/index.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,8 @@ const columnRules = {
667667
display: flex;
668668
align-items: center;
669669
justify-content: space-between;
670+
font-size: 16px;
671+
font-weight: 500;
670672
"
671673
>
672674
{{ t('permission.permission_rule') }}

0 commit comments

Comments
 (0)