Skip to content

Commit 9a02f6d

Browse files
committed
feat: chat greeting css
1 parent 89a5909 commit 9a02f6d

File tree

1 file changed

+35
-4
lines changed

1 file changed

+35
-4
lines changed

frontend/src/views/chat/index.vue

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,14 @@
7272
v-if="currentChatId === undefined"
7373
size="large"
7474
type="primary"
75+
class="greeting-btn"
7576
@click="createNewChat"
7677
>
77-
<el-icon>
78-
<icon_new_chat_outlined />
79-
</el-icon>
78+
<span class="inner-icon">
79+
<el-icon>
80+
<icon_new_chat_outlined />
81+
</el-icon>
82+
</span>
8083
{{ t('qa.start_sqlbot') }}
8184
</el-button>
8285
</div>
@@ -893,7 +896,6 @@ defineExpose({
893896
894897
.chat-record-list {
895898
padding: 0 0 20px 0;
896-
background: rgba(255, 255, 255, 1);
897899
border-radius: 0 12px 12px 0;
898900
899901
&.hide-sidebar {
@@ -988,6 +990,35 @@ defineExpose({
988990
font-size: 16px;
989991
line-height: 24px;
990992
}
993+
994+
.greeting-btn {
995+
width: 100%;
996+
height: 88px;
997+
998+
border-style: dashed;
999+
1000+
.inner-icon {
1001+
display: flex;
1002+
flex-direction: row;
1003+
align-items: center;
1004+
1005+
margin-right: 6px;
1006+
}
1007+
1008+
font-size: 16px;
1009+
line-height: 24px;
1010+
font-weight: 500;
1011+
1012+
--ed-button-text-color: rgba(28, 186, 144, 1);
1013+
--ed-button-hover-text-color: rgba(28, 186, 144, 1);
1014+
--ed-button-active-text-color: rgba(28, 186, 144, 1);
1015+
--ed-button-bg-color: rgba(248, 249, 250, 1);
1016+
--ed-button-hover-bg-color: rgba(28, 186, 144, 0.1);
1017+
--ed-button-border-color: rgba(217, 220, 223, 1);
1018+
--ed-button-hover-border-color: rgba(28, 186, 144, 1);
1019+
--ed-button-active-bg-color: rgba(28, 186, 144, 0.2);
1020+
--ed-button-active-border-color: rgba(28, 186, 144, 1);
1021+
}
9911022
}
9921023
}
9931024
</style>

0 commit comments

Comments
 (0)