feat: Style optimization

This commit is contained in:
dataeaseShu
2025-06-04 16:52:43 +08:00
parent b06891e710
commit f3d27b1fc3
4 changed files with 21 additions and 8 deletions
+9 -3
View File
@@ -9,7 +9,6 @@
v-model="workspace"
placeholder="Select"
class="workspace-select"
size="large"
style="width: 240px"
>
<template #label="{ label }">
@@ -242,7 +241,7 @@ onMounted(() => {
width: 100% !important;
:deep(.ed-select__wrapper) {
border-radius: 10px;
border-radius: 8px;
box-shadow: none !important;
background-color: #f1f3f4;
line-height: 32px;
@@ -287,6 +286,9 @@ onMounted(() => {
border-right: 1px solid #e6e6e6;
display: flex;
flex-direction: column;
.ed-menu--vertical {
padding: 0 16px;
}
}
.main-menu-topbar {
@@ -362,7 +364,7 @@ onMounted(() => {
width: 100% !important;
:deep(.ed-select__wrapper) {
border-radius: 10px;
border-radius: 8px;
box-shadow: none !important;
background-color: #f1f3f4;
line-height: 24px;
@@ -407,6 +409,10 @@ onMounted(() => {
background-color: #f5f7fa;
box-sizing: border-box;
&:not(.main-conntent-withba) {
padding: 16px 24px;
}
.header-container {
box-sizing: border-box;
margin: 0;
+4
View File
@@ -104,5 +104,9 @@ body {
}
}
.border-radius_8 {
border-radius: 8px !important;
}
+2 -3
View File
@@ -57,7 +57,6 @@ const getStatus = (status: string) => {
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
display: flex;
position: relative;
border: 1px solid #dadce0;
transition: all 0.2s ease;
align-items: center;
}
@@ -65,7 +64,7 @@ const getStatus = (status: string) => {
.connection-icon {
width: 48px;
height: 48px;
border-radius: 12px;
border-radius: 8px;
background-color: #e8f0fe;
color: var(--primary-color);
display: flex;
@@ -119,7 +118,7 @@ const getStatus = (status: string) => {
right: 20px;
top: 18px;
padding: 3px 8px;
border-radius: 12px;
border-radius: 4px;
font-size: 12px;
font-weight: 500;
display: flex;
+6 -2
View File
@@ -18,7 +18,7 @@
</el-input>
</div>
<el-button type="primary" :icon="IconOpeAdd" @click="editDs(undefined)">Add Datasource</el-button>
<el-button class="border-radius_8" type="primary" :icon="IconOpeAdd" @click="editDs(undefined)">Add Datasource</el-button>
</div>
<div class="connections-container">
@@ -131,11 +131,15 @@ onMounted(() => {
.header {
background-color: white;
padding: 16px 20px;
border-radius: 8px;
border-radius: 16px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
display: flex;
justify-content: space-between;
.input-with-select {
--ed-input-border-radius: 8px;
--ed-border-radius-base: 8px;
}
}
.connections-container {