Skip to content

Commit 1d2a2fd

Browse files
committed
fix: Style optimization
1 parent d225d0d commit 1d2a2fd

File tree

5 files changed

+51
-53
lines changed

5 files changed

+51
-53
lines changed

frontend/src/i18n/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"Details": "Details"
99
},
1010
"sync": {
11+
"integration": "Platform integration needs to be enabled.",
1112
"the_existing_user": "If the user already exists, overwrite the existing user.",
1213
"sync_users": "Sync Users",
1314
"sync_wechat_users": "Sync WeChat Users",

frontend/src/i18n/ko-KR.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"Details": "세부"
99
},
1010
"sync": {
11+
"integration": "플랫폼 통합을 활성화해야 합니다.",
1112
"the_existing_user": "해당 사용자가 이미 존재하는 경우 기존 사용자를 덮어씁니다.",
1213
"sync_users": "사용자 동기화",
1314
"sync_wechat_users": "위챗 사용자 동기화",

frontend/src/i18n/zh-CN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"Details": "详情"
99
},
1010
"sync": {
11+
"integration": "Platform integration needs to be enabled.",
1112
"the_existing_user": "若用户已存在,覆盖旧用户",
1213
"sync_users": "同步用户",
1314
"sync_wechat_users": "同步企业微信用户",

frontend/src/views/embedded/AssistantPreview.vue

Lines changed: 33 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -58,30 +58,14 @@ const pageLogo = computed(() => {
5858
<div class="i-can">{{ welcomeDesc }}</div>
5959
</div>
6060
<div class="content">
61-
<div class="textarea-send">
62-
<el-input
63-
v-model="textareaVal"
64-
:autosize="{ minRows: 1, maxRows: 8.5848 }"
65-
type="textarea"
66-
clearable
67-
:placeholder="$t('embedded.enter_a_question')"
68-
/>
69-
<el-tooltip :offset="10" effect="dark" :content="$t('embedded.send')" placement="top">
70-
<img :src="disable_answer" width="32px" height="32px" alt="" />
71-
</el-tooltip>
72-
73-
<!-- <el-tooltip
74-
:offset="10"
75-
effect="dark"
76-
:content="$t('embedded.stop_replying')"
77-
placement="top"
78-
>
79-
<img :src="answer" width="32px" height="32px" alt="" />
80-
</el-tooltip>
81-
82-
<img :src="loading_answer" width="32px" height="32px" alt="" />
83-
<img :src="send_answer" width="32px" height="32px" alt="" /> -->
84-
</div>
61+
<el-button size="large" type="primary" class="greeting-btn">
62+
<span class="inner-icon">
63+
<el-icon>
64+
<icon_new_chat_outlined />
65+
</el-icon>
66+
</span>
67+
{{ $t('qa.start_sqlbot') }}
68+
</el-button>
8569
</div>
8670

8771
<div class="drawer-assistant"></div>
@@ -149,13 +133,10 @@ const pageLogo = computed(() => {
149133
}
150134
.center {
151135
width: 100%;
152-
position: absolute;
153-
top: 50%;
154-
left: 50%;
155-
transform: translate(-50%, -50%);
156136
display: flex;
157137
align-items: center;
158138
flex-direction: column;
139+
margin-top: 180px;
159140
160141
.i-am {
161142
font-weight: 600;
@@ -182,37 +163,37 @@ const pageLogo = computed(() => {
182163
}
183164
.content {
184165
width: calc(100% - 32px);
166+
margin-top: 8px;
167+
margin-left: 16px;
185168
186-
.textarea-send {
169+
.greeting-btn {
187170
width: 100%;
188-
position: relative;
189-
.ed-textarea {
190-
width: 100%;
191-
}
171+
height: 88px;
172+
border-radius: 16px;
173+
border-style: dashed;
192174
193-
:deep(.ed-textarea__inner) {
194-
padding: 12px 12px 52px 12px;
195-
font-weight: 400;
196-
font-size: 16px;
197-
line-height: 24px;
198-
border-radius: 16px;
175+
.inner-icon {
176+
display: flex;
177+
flex-direction: row;
178+
align-items: center;
199179
200-
&::placeholder {
201-
color: #8f959e;
202-
}
180+
margin-right: 6px;
203181
}
204182
205-
img {
206-
cursor: pointer;
207-
position: absolute;
208-
right: 12px;
209-
bottom: 12px;
210-
}
211-
}
183+
font-size: 16px;
184+
line-height: 24px;
185+
font-weight: 500;
212186
213-
position: absolute;
214-
bottom: 16px;
215-
left: 16px;
187+
--ed-button-text-color: var(--ed-color-primary, rgba(28, 186, 144, 1));
188+
--ed-button-hover-text-color: var(--ed-color-primary, rgba(28, 186, 144, 1));
189+
--ed-button-active-text-color: var(--ed-color-primary, rgba(28, 186, 144, 1));
190+
--ed-button-bg-color: rgba(248, 249, 250, 1);
191+
--ed-button-hover-bg-color: var(--ed-color-primary-1a, #1cba901a);
192+
--ed-button-border-color: rgba(217, 220, 223, 1);
193+
--ed-button-hover-border-color: var(--ed-color-primary, rgba(28, 186, 144, 1));
194+
--ed-button-active-bg-color: var(--ed-color-primary-33, #1cba9033);
195+
--ed-button-active-border-color: var(--ed-color-primary, rgba(28, 186, 144, 1));
196+
}
216197
}
217198
218199
.drawer-assistant {

frontend/src/views/system/user/User.vue

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,21 @@
2424
{{ $t('user.filter') }}
2525
</el-button>
2626

27-
<el-popover popper-class="sync-platform" placement="bottom-start">
27+
<el-tooltip
28+
v-if="!platformType.length"
29+
effect="dark"
30+
:content="$t('sync.integration')"
31+
placement="left"
32+
>
33+
<el-button disabled secondary>
34+
<template #icon>
35+
<icon_replace_outlined />
36+
</template>
37+
{{ t('sync.sync_users') }}
38+
</el-button>
39+
</el-tooltip>
40+
41+
<el-popover v-else popper-class="sync-platform" placement="bottom-start">
2842
<template #reference>
2943
<el-button secondary>
3044
<template #icon>

0 commit comments

Comments
 (0)