Skip to content

Commit 49885cc

Browse files
committed
style: change css
1 parent 0993eb3 commit 49885cc

File tree

4 files changed

+36
-22
lines changed

4 files changed

+36
-22
lines changed

frontend/src/components/layout/index.vue

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,16 @@
7575
<el-dropdown-menu>
7676
<el-dropdown-item @click="switchLayout">Switch Layout</el-dropdown-item>
7777
<el-dropdown-item @click="logout">Logout</el-dropdown-item>
78-
<el-dropdown-item><language-selector /></el-dropdown-item>
78+
<el-dropdown-item>
79+
<language-selector/>
80+
</el-dropdown-item>
7981
</el-dropdown-menu>
8082
</template>
8183
</el-dropdown>
8284
</div>
8385
</div>
8486

85-
<div class="main-content" :class="{'main-conntent-withbar': topLayout}">
87+
<div class="main-content" :class="{'main-content-with-bar': topLayout}">
8688
<div class="header-container" v-if="!topLayout">
8789
<div class="header">
8890
<h1>{{ currentPageTitle }}</h1>
@@ -92,7 +94,7 @@
9294
<el-icon>
9395
<iconsystem/>
9496
</el-icon>
95-
<span>{{ t('common.system_manage') }}</span>
97+
<span>{{ t('common.system_manage') }}</span>
9698
</div>
9799
</el-tooltip>
98100

@@ -105,8 +107,10 @@
105107
<el-dropdown-menu>
106108
<el-dropdown-item @click="switchLayout">Switch Layout</el-dropdown-item>
107109
<el-dropdown-item @click="logout">Logout</el-dropdown-item>
108-
<el-dropdown-item><language-selector /></el-dropdown-item>
109-
110+
<el-dropdown-item>
111+
<language-selector/>
112+
</el-dropdown-item>
113+
110114
</el-dropdown-menu>
111115
</template>
112116
</el-dropdown>
@@ -155,10 +159,10 @@ import icon_user from '@/assets/svg/icon_user.svg'
155159
import icon_ai from '@/assets/svg/icon_ai.svg'
156160
import {ArrowLeftBold} from '@element-plus/icons-vue'
157161
import {useCache} from '@/utils/useCache'
158-
import { useI18n } from 'vue-i18n'
162+
import {useI18n} from 'vue-i18n'
159163
import LanguageSelector from '@/components/Language-selector/index.vue'
160164
161-
const { t } = useI18n()
165+
const {t} = useI18n()
162166
const {wsCache} = useCache()
163167
const topLayout = ref(false)
164168
const router = useRouter()
@@ -284,6 +288,7 @@ onMounted(() => {
284288
flex: 1;
285289
border-right: none;
286290
border-bottom: none;
291+
287292
&:not(.ed-menu--vertical) {
288293
margin-left: 32px
289294
}
@@ -293,9 +298,11 @@ onMounted(() => {
293298
.main-menu-sidebar {
294299
width: 240px;
295300
background: #fff;
296-
border-right: 1px solid #e6e6e6;
301+
box-shadow: 0 1px 3px var(--ed-menu-border-color);
297302
display: flex;
298303
flex-direction: column;
304+
z-index: 2;
305+
299306
.ed-menu--vertical {
300307
padding: 0 16px;
301308
}
@@ -307,9 +314,9 @@ onMounted(() => {
307314
font-size: 24px;
308315
font-weight: bold;
309316
color: var(--el-color-primary);
310-
text-align: left;
311317
justify-content: space-between;
312-
border-bottom: 1px solid var(--el-menu-border-color);
318+
box-shadow: 0 1px 3px var(--ed-menu-border-color);
319+
z-index: 2;
313320
text-align: center;
314321
315322
.logo {
@@ -419,7 +426,7 @@ onMounted(() => {
419426
background-color: #f5f7fa;
420427
box-sizing: border-box;
421428
422-
&:not(.main-conntent-withba) {
429+
&:not(.main-content-with-bar) {
423430
padding: 16px 24px;
424431
}
425432
@@ -518,7 +525,7 @@ onMounted(() => {
518525
}
519526
}
520527
521-
.main-conntent-withbar {
528+
.main-content-with-bar {
522529
height: 0;
523530
flex: 1;
524531
width: 100%;

frontend/src/views/chat/ChatAnswer.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ function onTypeChange(type: string) {
108108
<template>
109109
<el-container v-if="message">
110110
<el-header style="display: flex; align-items: center; flex-direction: row;">
111-
<div style="flex:1" v-if="message.isTyping">Thinking ...</div>
112-
<div style="flex:1" v-if="chartObject.title && !message.isTyping">{{ chartObject.title }}</div>
111+
<div style="flex:1">
112+
<div v-if="message.isTyping">Thinking ...</div>
113+
<div v-if="chartObject.title && !message.isTyping">{{ chartObject.title }}</div>
114+
</div>
113115
<el-tabs v-model="settings.type" class="type-tabs" @tab-click="handleClick" tab-position="top">
114116
<el-tab-pane label="Chart" name="chart">
115117
<template #label>

frontend/src/views/chat/index.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ import {Chat, chatApi, ChatInfo, type ChatMessage, ChatRecord, questionApi,} fro
8585
import ChatList from "./ChatList.vue";
8686
import ChatRow from "./ChatRow.vue";
8787
import ChatAnswer from "./ChatAnswer.vue";
88-
import { useI18n } from 'vue-i18n'
89-
const { t } = useI18n()
88+
import {useI18n} from 'vue-i18n'
89+
90+
const {t} = useI18n()
9091
9192
const inputMessage = ref("");
9293
@@ -374,9 +375,10 @@ const handleCtrlEnter = (e: KeyboardEvent) => {
374375
height: 100%;
375376
376377
.chat-container-left {
377-
--el-aside-width: 260px;
378+
--ed-aside-width: 260px;
378379
379-
border-right: solid 1px rgba(0, 0, 0, 0.3);
380+
box-shadow: 0 0 3px #d7d7d7;
381+
z-index: 1;
380382
381383
background: var(--ed-fill-color-blank);
382384

frontend/src/views/dashboard/preview/SQPreviewShow.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ defineExpose({
118118
class="resource-area"
119119
:class="{ 'close-side': !slideShow, retract: !sideTreeStatus }"
120120
ref="node"
121-
style="width: 280px"
122121
>
123122
<resource-tree
124123
ref="resourceTreeRef"
@@ -134,7 +133,7 @@ defineExpose({
134133
v-loading="!dataInitState"
135134
>
136135
<template v-if="previewShowFlag">
137-
<SQPreviewHead @reload="reload" />
136+
<SQPreviewHead @reload="reload"/>
138137
<div
139138
ref="previewCanvasContainer"
140139
class="content"
@@ -182,11 +181,15 @@ defineExpose({
182181
position: relative;
183182
184183
.resource-area {
184+
--ed-aside-width: 260px;
185+
185186
position: relative;
186187
height: 100%;
187-
width: 279px;
188188
padding: 0;
189-
border-right: 1px solid #d7d7d7;
189+
190+
box-shadow: 0 0 3px #d7d7d7;
191+
z-index: 1;
192+
190193
overflow: visible;
191194
192195
&.retract {

0 commit comments

Comments
 (0)