Skip to content

Commit f3d27b1

Browse files
committed
feat: Style optimization
1 parent b06891e commit f3d27b1

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

frontend/src/components/layout/index.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
v-model="workspace"
1010
placeholder="Select"
1111
class="workspace-select"
12-
size="large"
1312
style="width: 240px"
1413
>
1514
<template #label="{ label }">
@@ -242,7 +241,7 @@ onMounted(() => {
242241
width: 100% !important;
243242
244243
:deep(.ed-select__wrapper) {
245-
border-radius: 10px;
244+
border-radius: 8px;
246245
box-shadow: none !important;
247246
background-color: #f1f3f4;
248247
line-height: 32px;
@@ -287,6 +286,9 @@ onMounted(() => {
287286
border-right: 1px solid #e6e6e6;
288287
display: flex;
289288
flex-direction: column;
289+
.ed-menu--vertical {
290+
padding: 0 16px;
291+
}
290292
}
291293
292294
.main-menu-topbar {
@@ -362,7 +364,7 @@ onMounted(() => {
362364
width: 100% !important;
363365
364366
:deep(.ed-select__wrapper) {
365-
border-radius: 10px;
367+
border-radius: 8px;
366368
box-shadow: none !important;
367369
background-color: #f1f3f4;
368370
line-height: 24px;
@@ -407,6 +409,10 @@ onMounted(() => {
407409
background-color: #f5f7fa;
408410
box-sizing: border-box;
409411
412+
&:not(.main-conntent-withba) {
413+
padding: 16px 24px;
414+
}
415+
410416
.header-container {
411417
box-sizing: border-box;
412418
margin: 0;

frontend/src/style.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,9 @@ body {
104104
}
105105
}
106106

107+
.border-radius_8 {
108+
border-radius: 8px !important;
109+
}
110+
107111

108112

frontend/src/views/ds/DatasourceItemCard.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,14 @@ const getStatus = (status: string) => {
5757
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
5858
display: flex;
5959
position: relative;
60-
border: 1px solid #dadce0;
6160
transition: all 0.2s ease;
6261
align-items: center;
6362
}
6463
6564
.connection-icon {
6665
width: 48px;
6766
height: 48px;
68-
border-radius: 12px;
67+
border-radius: 8px;
6968
background-color: #e8f0fe;
7069
color: var(--primary-color);
7170
display: flex;
@@ -119,7 +118,7 @@ const getStatus = (status: string) => {
119118
right: 20px;
120119
top: 18px;
121120
padding: 3px 8px;
122-
border-radius: 12px;
121+
border-radius: 4px;
123122
font-size: 12px;
124123
font-weight: 500;
125124
display: flex;

frontend/src/views/ds/index.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</el-input>
1919
</div>
2020

21-
<el-button type="primary" :icon="IconOpeAdd" @click="editDs(undefined)">Add Datasource</el-button>
21+
<el-button class="border-radius_8" type="primary" :icon="IconOpeAdd" @click="editDs(undefined)">Add Datasource</el-button>
2222
</div>
2323

2424
<div class="connections-container">
@@ -131,11 +131,15 @@ onMounted(() => {
131131
.header {
132132
background-color: white;
133133
padding: 16px 20px;
134-
border-radius: 8px;
134+
border-radius: 16px;
135135
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
136136
margin-bottom: 20px;
137137
display: flex;
138138
justify-content: space-between;
139+
.input-with-select {
140+
--ed-input-border-radius: 8px;
141+
--ed-border-radius-base: 8px;
142+
}
139143
}
140144
141145
.connections-container {

0 commit comments

Comments
 (0)