Skip to content

Commit ac6f843

Browse files
committed
fix(chat): The left projection is blocked, and the content card order is above the left menu
1 parent b527fc4 commit ac6f843

File tree

11 files changed

+81
-29
lines changed

11 files changed

+81
-29
lines changed

frontend/src/components/drawer-filter/src/DrawerEnumFilter.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ useEmitt({
8484
padding: 1px 6px;
8585
background: var(--deTextPrimary5, #f5f6f7);
8686
color: var(--deTextPrimary, #1f2329);
87-
border-radius: 2px;
87+
border-radius: 4px;
8888
cursor: pointer;
8989
display: inline-block;
9090
margin-bottom: 12px;
9191
}
9292
9393
.active,
9494
.more:hover {
95-
background: var(--primary10, var(--ed-color-primary-1a, #1cba9033));
96-
color: var(--primaryselect, #0c296e);
95+
background: var(--ed-color-primary-1a, #1cba9033);
96+
color: #0b4a3a;
9797
}
9898
9999
.more {

frontend/src/components/drawer-filter/src/DrawerFilter.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ useEmitt({
7676
7777
> :nth-child(1) {
7878
color: var(--deTextSecondary, #1f2329);
79-
font-family: var(--de-custom_font, 'PingFang');
8079
font-style: normal;
8180
font-weight: 400;
8281
font-size: 14px;

frontend/src/components/layout/LayoutDsl.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const showSysmenu = computed(() => {
6262
</div>
6363
</div>
6464
</div>
65-
<div class="right-main">
65+
<div class="right-main" :class="collapse && 'right-side-collapse'">
6666
<div class="content">
6767
<router-view />
6868
</div>
@@ -91,6 +91,7 @@ const showSysmenu = computed(() => {
9191
height: 100%;
9292
padding: 16px;
9393
position: relative;
94+
min-width: 240px;
9495
9596
.bottom {
9697
position: absolute;
@@ -137,8 +138,9 @@ const showSysmenu = computed(() => {
137138
138139
&.left-side-collapse {
139140
width: 64px;
141+
min-width: 64px;
140142
padding: 16px 12px;
141-
animation: rotate 1s ease-in-out;
143+
// animation: rotate 0.1s ease-in-out;
142144
143145
.ed-menu--collapse {
144146
--ed-menu-icon-width: 32px;
@@ -168,18 +170,22 @@ const showSysmenu = computed(() => {
168170
}
169171
170172
.right-main {
171-
flex: 1;
173+
width: calc(100% - 240px);
172174
padding: 8px 8px 8px 0;
173175
max-height: 100vh;
174-
overflow-x: auto;
176+
177+
&.right-side-collapse {
178+
width: calc(100% - 64px);
179+
}
175180
176181
.content {
177182
width: 100%;
178183
height: 100%;
179184
padding: 16px 24px;
180-
box-shadow: 0px 2px 4px 0px #1f23291f;
181185
background-color: #fff;
182186
border-radius: 12px;
187+
box-shadow: 0px 2px 4px 0px #1f23291f;
188+
overflow-x: auto;
183189
184190
&:has(.no-padding) {
185191
padding: 0;

frontend/src/style.less

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,33 @@ strong {
287287
.ed-button.is-secondary.is-disabled {
288288
border-color: #d9dcdf !important;
289289
}
290+
291+
.ed-drawer.btt {
292+
.ed-drawer__body {
293+
padding-bottom: 64px;
294+
}
295+
}
296+
297+
.ed-tag.ed-tag--info {
298+
--ed-tag-bg-color: #1f23291a !important;
299+
--ed-tag-text-color: #1f2329 !important;
300+
--ed-tag-font-size: 14px;
301+
}
302+
303+
.hover-icon_with_bg.ed-icon {
304+
cursor: pointer;
305+
position: relative;
306+
&:hover {
307+
&::after {
308+
content: '';
309+
position: absolute;
310+
top: 50%;
311+
left: 50%;
312+
transform: translate(-50%, -50%);
313+
background: #1f23291a;
314+
width: 24px;
315+
height: 24px;
316+
border-radius: 6px;
317+
}
318+
}
319+
}

frontend/src/views/chat/index.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<el-popover
2424
:width="280"
2525
placement="bottom-start"
26+
popper-class="popover-chat_history"
2627
:popper-style="{ ...defaultFloatPopoverStyle }"
2728
>
2829
<template #reference>
@@ -1142,4 +1143,10 @@ onMounted(() => {
11421143
padding: 0;
11431144
}
11441145
}
1146+
1147+
.popover-chat_history {
1148+
box-shadow: 0px 4px 8px 0px #1f23291a !important;
1149+
border-radius: 12px !important;
1150+
overflow: hidden;
1151+
}
11451152
</style>

frontend/src/views/dashboard/common/ResourceTree.vue

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -322,19 +322,16 @@ defineExpose({
322322
<div class="tree-header">
323323
<div class="icon-methods">
324324
<span class="title">{{ t('dashboard.dashboard') }} </span>
325-
<div class="flex-align-center">
326-
<el-tooltip :content="t('dashboard.new_dashboard')" placement="top" effect="dark">
327-
<el-icon
328-
class="custom-icon btn"
329-
style="margin-right: 10px"
330-
@click="addOperation({ opt: 'newLeaf', type: 'dashboard' })"
331-
>
332-
<Icon name="dv-new-folder">
333-
<ope_add class="svg-icon" />
334-
</Icon>
335-
</el-icon>
336-
</el-tooltip>
337-
</div>
325+
<el-tooltip :content="t('dashboard.new_dashboard')" placement="top" effect="dark">
326+
<el-icon
327+
class="custom-icon btn hover-icon_with_bg"
328+
@click="addOperation({ opt: 'newLeaf', type: 'dashboard' })"
329+
>
330+
<Icon name="dv-new-folder">
331+
<ope_add class="svg-icon" />
332+
</Icon>
333+
</el-icon>
334+
</el-tooltip>
338335
</div>
339336
<el-input
340337
v-model="filterText"
@@ -503,7 +500,7 @@ defineExpose({
503500
.icon-methods {
504501
display: flex;
505502
align-items: center;
506-
justify-content: flex-end;
503+
justify-content: space-between;
507504
font-size: 20px;
508505
font-weight: 500;
509506
color: var(--TextPrimary, #1f2329);

frontend/src/views/ds/TableList.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ onMounted(() => {
297297
}
298298
.title {
299299
color: #fff;
300-
font-family: var(--de-custom_font, 'PingFang');
301300
font-size: 16px;
302301
font-weight: 400;
303302
display: flex;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const handlePublic = () => {
8989
padding: 16px;
9090
border-radius: 12px;
9191
cursor: pointer;
92-
margin: 0 16px 16px 0;
92+
margin: 16px 16px 0 0;
9393
&:hover {
9494
box-shadow: 0px 6px 24px 0px #1f232914;
9595
}

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,9 +776,10 @@ const saveHandler = () => {
776776
</template>
777777
<div class="card-ds_content">
778778
<DsCard
779-
v-for="ele in dsListOptions"
779+
v-for="(ele, index) in dsListOptions"
780780
:id="ele.id"
781781
:key="ele.id"
782+
:class="[0, 1].includes(index) && 'no-margin_top'"
782783
:name="ele.name"
783784
:type="ele.type"
784785
:type-name="ele.type_name"
@@ -1036,20 +1037,31 @@ const saveHandler = () => {
10361037
display: flex;
10371038
align-items: center;
10381039
flex-wrap: wrap;
1039-
padding-bottom: 50px;
10401040
10411041
.card {
10421042
width: 392px;
10431043
&:nth-child(even) {
10441044
margin-right: 0;
10451045
}
10461046
}
1047+
1048+
.no-margin_top {
1049+
margin-top: 0;
1050+
}
10471051
}
10481052
10491053
.drawer-content {
10501054
width: 800px;
10511055
margin: 0 auto;
1052-
height: calc(100% - 20px);
1056+
height: 100%;
1057+
padding-bottom: 24px;
1058+
overflow-y: auto;
1059+
1060+
.ed-form-item {
1061+
&:last-child {
1062+
margin-bottom: 0;
1063+
}
1064+
}
10531065
}
10541066
10551067
.certificate-table_form {

frontend/src/views/system/model/ModelForm.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ defineExpose({
459459
padding-top: 24px;
460460
overflow-y: auto;
461461
height: calc(100% - 120px);
462+
padding-bottom: 24px;
462463
463464
.ed-form-item--default {
464465
margin-bottom: 16px;

0 commit comments

Comments
 (0)