Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
水玉婷
ai-wechat
Commits
e3a28c68
Commit
e3a28c68
authored
Jan 30, 2026
by
水玉婷
Browse files
feat:样式调整及loading调整
parent
d3b643f3
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/views/History.vue
View file @
e3a28c68
...
@@ -373,7 +373,7 @@ onMounted(() => {
...
@@ -373,7 +373,7 @@ onMounted(() => {
padding: 8px 12px 8px 36px;
padding: 8px 12px 8px 36px;
border: 1px solid #d9d9d9;
border: 1px solid #d9d9d9;
border-radius: 6px;
border-radius: 6px;
font-size: 1
4
px;
font-size: 1
6
px;
&:focus {
&:focus {
outline: none;
outline: none;
...
@@ -433,7 +433,7 @@ onMounted(() => {
...
@@ -433,7 +433,7 @@ onMounted(() => {
min-width: 0;
min-width: 0;
.session-title {
.session-title {
font-size: 1
4
px;
font-size: 1
6
px;
font-weight: 500;
font-weight: 500;
color: #333;
color: #333;
margin-bottom: 4px;
margin-bottom: 4px;
...
@@ -490,7 +490,7 @@ onMounted(() => {
...
@@ -490,7 +490,7 @@ onMounted(() => {
}
}
p {
p {
font-size: 1
4
px;
font-size: 1
6
px;
margin: 0;
margin: 0;
}
}
}
}
...
...
src/views/components/AiChat.vue
View file @
e3a28c68
...
@@ -63,6 +63,9 @@
...
@@ -63,6 +63,9 @@
<span
class=
"dot"
></span>
<span
class=
"dot"
></span>
<span
class=
"dot"
></span>
<span
class=
"dot"
></span>
<span
class=
"dot"
></span>
<span
class=
"dot"
></span>
<span
class=
"dot"
></span>
<span
class=
"dot"
></span>
<span
class=
"dot"
></span>
</div>
</div>
</div>
</div>
<img
<img
...
...
src/views/components/ChartComponent.vue
View file @
e3a28c68
...
@@ -379,6 +379,11 @@ onMounted(() => {
...
@@ -379,6 +379,11 @@ onMounted(() => {
display: flex;
display: flex;
align-items: center;
align-items: center;
margin-right: 6px;
margin-right: 6px;
.ant-select {
.ant-select-selector {
height: 28px;
}
}
}
}
.chart-fields-selector {
.chart-fields-selector {
...
...
src/views/components/TableComponent.vue
View file @
e3a28c68
...
@@ -393,9 +393,6 @@ const getTableScroll = () => {
...
@@ -393,9 +393,6 @@ const getTableScroll = () => {
&:last-child
{
&:last-child
{
border-right
:
none
;
border-right
:
none
;
}
}
.ant-table-column-sorter-up.active
,
.ant-table-column-sorter-down.active
{
color
:
#656363
;
}
}
}
.ant-table-tbody
>
tr
>
td
{
.ant-table-tbody
>
tr
>
td
{
...
...
src/views/components/VoiceRecognition.vue
View file @
e3a28c68
...
@@ -685,7 +685,7 @@ defineExpose({
...
@@ -685,7 +685,7 @@ defineExpose({
}
}
.
full
-
screen
-
text
{
.
full
-
screen
-
text
{
font
-
size
:
1
4
px
;
font
-
size
:
1
6
px
;
opacity
:
0
;
opacity
:
0
;
transition
:
opacity
0.3
s
ease
;
transition
:
opacity
0.3
s
ease
;
}
}
...
...
src/views/components/style.less
View file @
e3a28c68
...
@@ -2,6 +2,14 @@
...
@@ -2,6 +2,14 @@
// 全局样式和变量定义
// 全局样式和变量定义
// =============================================
// =============================================
// 全局基础样式
body {
font-size: 16px;
color: @gray-7; // #323232
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
line-height: 1.5;
}
// 颜色变量
// 颜色变量
@primary-color: var(--primary-color, #5B8AFE);
@primary-color: var(--primary-color, #5B8AFE);
@primary-hover: var(--primary-color-hover, #4a7df5);
@primary-hover: var(--primary-color-hover, #4a7df5);
...
@@ -19,10 +27,9 @@
...
@@ -19,10 +27,9 @@
@gray-6: #666666;
@gray-6: #666666;
@gray-7: #323232;
@gray-7: #323232;
@gray-8:#969799;
@gray-8:#969799;
@gray-9:#222629;
@gray-10:#C8C9CC;
@gray-10:#C8C9CC;
@success-color: #52c41a;
@success-color: #52c41a;
@error-color: #
f5222d
;
@error-color: #
DF4545
;
@warning-color: #faad14;
@warning-color: #faad14;
// 新增颜色变量
// 新增颜色变量
...
@@ -172,6 +179,7 @@ li {
...
@@ -172,6 +179,7 @@ li {
.chat-messages {
.chat-messages {
flex: 1;
flex: 1;
overflow-y: auto;
overflow-y: auto;
padding: 12px 0px;
}
}
// 输入容器
// 输入容器
...
@@ -188,7 +196,7 @@ li {
...
@@ -188,7 +196,7 @@ li {
.message-time {
.message-time {
color: @message-time-color;
color: @message-time-color;
margin-bottom: 6px;
margin-bottom: 6px;
font-size: 1
4
px;
font-size: 1
6
px;
}
}
.message {
.message {
...
@@ -262,17 +270,15 @@ li {
...
@@ -262,17 +270,15 @@ li {
}
}
.message-content {
.message-content {
padding: 10px;
padding: 10px;
border-radius: 8px;
border-radius: 4px;
line-height: 1.5;
position: relative;
position: relative;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
white-space: pre-wrap;
white-space: pre-wrap;
.message-inner-box {
.message-inner-box {
font-size: 0;
font-size: 0;
:deep(.message-text) {
:deep(.message-text) {
font-size: 1
4
px;
font-size: 1
6
px;
}
}
}
}
}
}
...
@@ -280,37 +286,37 @@ li {
...
@@ -280,37 +286,37 @@ li {
.message.received .message-content {
.message.received .message-content {
background-color:none;
background-color:none;
border-top-left-radius: 5px;
border-top-left-radius: 5px;
color: @gray-
9
;
color: @gray-
7
;
border: none;
border: none;
padding: 0;
padding: 0;
box-shadow:none;
box-shadow:none;
}
}
.message.sent .message-content {
.message.sent .message-content {
background: linear-gradient(135deg, @primary-color 0%, @primary-light 100%);
background: #5B8AFE;
border-top-right-radius: 5px;
color: @white;
color: @white;
}
}
// 图表块样式
// 图表块样式
.chart-block {
.chart-block {
margin
-top: 12
px;
margin
: 20px 0px 8
px;
}
}
// 失败消息样式
// 失败消息样式
.message-failed-wrapper {
.message-failed-wrapper {
margin-top:
8
px;
margin-top:
12
px;
.failed-indicator {
.failed-indicator {
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: flex-end;
justify-content: flex-end;
gap: 8px;
gap: 8px;
font-size: 1
2
px;
font-size: 1
6
px;
color: @error-color;
color: @error-color;
.failed-text {
.failed-text {
color: @error-color;
color: @error-color;
font-size:16px;
}
}
.retry-button {
.retry-button {
...
@@ -333,7 +339,7 @@ li {
...
@@ -333,7 +339,7 @@ li {
line-height: 1.5;
line-height: 1.5;
color: @error-color;
color: @error-color;
white-space: pre-wrap;
white-space: pre-wrap;
font-size: 1
4
px;
font-size: 1
6
px;
}
}
// 成功消息样式
// 成功消息样式
...
@@ -341,7 +347,7 @@ li {
...
@@ -341,7 +347,7 @@ li {
line-height: 1.5;
line-height: 1.5;
color: @success-color;
color: @success-color;
white-space: pre-wrap;
white-space: pre-wrap;
font-size: 1
4
px;
font-size: 1
6
px;
}
}
// 思考消息样式
// 思考消息样式
...
@@ -352,7 +358,7 @@ li {
...
@@ -352,7 +358,7 @@ li {
// 思考框样式
// 思考框样式
:deep(.think-box-toggle) {
:deep(.think-box-toggle) {
cursor: pointer;
cursor: pointer;
font-size: 1
4
px;
font-size: 1
6
px;
text-decoration: none;
text-decoration: none;
display: flex;
display: flex;
align-items: center;
align-items: center;
...
@@ -366,7 +372,7 @@ li {
...
@@ -366,7 +372,7 @@ li {
height: 24px;
height: 24px;
border-radius: 50%;
border-radius: 50%;
color: white;
color: white;
font-size: 1
2
px;
font-size: 1
6
px;
font-weight: bold;
font-weight: bold;
position: relative;
position: relative;
}
}
...
@@ -393,7 +399,6 @@ li {
...
@@ -393,7 +399,6 @@ li {
.loading-dots {
.loading-dots {
display: flex;
display: flex;
gap: 4px;
.dot {
.dot {
width: 6px;
width: 6px;
...
@@ -403,14 +408,26 @@ li {
...
@@ -403,14 +408,26 @@ li {
animation: loading-dots 1.4s ease-in-out infinite both;
animation: loading-dots 1.4s ease-in-out infinite both;
&:nth-child(1) {
&:nth-child(1) {
animation-delay: -0.
32
s;
animation-delay: -0.
7
s;
}
}
&:nth-child(2) {
&:nth-child(2) {
animation-delay: -0.
1
6s;
animation-delay: -0.
5
6s;
}
}
&:nth-child(3) {
&:nth-child(3) {
animation-delay: -0.42s;
}
&:nth-child(4) {
animation-delay: -0.28s;
}
&:nth-child(5) {
animation-delay: -0.14s;
}
&:nth-child(6) {
animation-delay: 0s;
animation-delay: 0s;
}
}
}
}
...
@@ -418,7 +435,7 @@ li {
...
@@ -418,7 +435,7 @@ li {
.thinking-text {
.thinking-text {
color: @gray-7;
color: @gray-7;
font-size: 1
4
px;
font-size: 1
6
px;
transition: color 0.3s ease;
transition: color 0.3s ease;
font-weight: 500;
font-weight: 500;
}
}
...
@@ -474,6 +491,7 @@ li {
...
@@ -474,6 +491,7 @@ li {
transition: opacity 0.3s ease-in-out 0.1s, transform 0.3s ease-in-out 0.1s;
transition: opacity 0.3s ease-in-out 0.1s, transform 0.3s ease-in-out 0.1s;
padding-left:24px;
padding-left:24px;
position: relative;
position: relative;
line-height: 24px;
&::before {
&::before {
content: '';
content: '';
...
@@ -554,9 +572,8 @@ li {
...
@@ -554,9 +572,8 @@ li {
outline: none;
outline: none;
resize: none;
resize: none;
height: 52px;
height: 52px;
font-size: 1
5
px;
font-size: 1
6
px;
transition: border-color 0.3s, box-shadow 0.3s;
transition: border-color 0.3s, box-shadow 0.3s;
background-color: @blue-light-2;
border: 1px solid @gray-3;
border: 1px solid @gray-3;
overflow: hidden;
overflow: hidden;
position: relative;
position: relative;
...
@@ -609,7 +626,6 @@ li {
...
@@ -609,7 +626,6 @@ li {
p {
p {
color: @gray-5;
color: @gray-5;
font-size: 12px;
span {
span {
margin-right: 15px;
margin-right: 15px;
...
@@ -640,7 +656,7 @@ li {
...
@@ -640,7 +656,7 @@ li {
padding: 12px 16px;
padding: 12px 16px;
background-color: @blue-light-2;
background-color: @blue-light-2;
border-bottom: 1px solid @blue-light-3;
border-bottom: 1px solid @blue-light-3;
font-size: 1
4
px;
font-size: 1
6
px;
color: @gray-7;
color: @gray-7;
font-weight: 500;
font-weight: 500;
line-height: 1.4;
line-height: 1.4;
...
@@ -651,7 +667,7 @@ li {
...
@@ -651,7 +667,7 @@ li {
padding: 8px 16px;
padding: 8px 16px;
background-color: @white;
background-color: @white;
border-bottom: 1px solid @gray-2;
border-bottom: 1px solid @gray-2;
font-size: 1
4
px;
font-size: 1
6
px;
color: @gray-7;
color: @gray-7;
font-weight: 600;
font-weight: 600;
line-height: 1.4;
line-height: 1.4;
...
@@ -800,7 +816,7 @@ li {
...
@@ -800,7 +816,7 @@ li {
padding: 12px 16px;
padding: 12px 16px;
background-color: @blue-light-2;
background-color: @blue-light-2;
border-bottom: 1px solid @blue-light-3;
border-bottom: 1px solid @blue-light-3;
font-size: 1
4
px;
font-size: 1
6
px;
color: @gray-7;
color: @gray-7;
font-weight: 500;
font-weight: 500;
line-height: 1.4;
line-height: 1.4;
...
@@ -827,7 +843,7 @@ li {
...
@@ -827,7 +843,7 @@ li {
line-height: 1.4;
line-height: 1.4;
.option-number-title {
.option-number-title {
font-size: 1
4
px;
font-size: 1
6
px;
color: @gray-7;
color: @gray-7;
font-weight: 500;
font-weight: 500;
...
@@ -844,7 +860,7 @@ li {
...
@@ -844,7 +860,7 @@ li {
}
}
.option-url {
.option-url {
font-size: 1
2
px;
font-size: 1
6
px;
color: @gray-5;
color: @gray-5;
font-family: 'Courier New', monospace;
font-family: 'Courier New', monospace;
word-break: break-all;
word-break: break-all;
...
@@ -874,7 +890,7 @@ li {
...
@@ -874,7 +890,7 @@ li {
position: relative;
position: relative;
background-color: @blue-light-2;
background-color: @blue-light-2;
border-bottom: 1px solid @blue-light-3;
border-bottom: 1px solid @blue-light-3;
font-size: 1
4
px;
font-size: 1
6
px;
color: @gray-7;
color: @gray-7;
font-weight: 500;
font-weight: 500;
line-height: 1.4;
line-height: 1.4;
...
@@ -895,9 +911,9 @@ li {
...
@@ -895,9 +911,9 @@ li {
overflow: hidden;
overflow: hidden;
.markdown-content {
.markdown-content {
font-size: 1
4
px;
font-size: 1
6
px;
line-height:
1.6
;
line-height:
24px
;
color: @gray-
9
;
color: @gray-
7
;
background: none;
background: none;
white-space: initial;
white-space: initial;
// br{
// br{
...
@@ -913,7 +929,7 @@ li {
...
@@ -913,7 +929,7 @@ li {
h6 {
h6 {
margin-bottom: 8px;
margin-bottom: 8px;
font-weight: 600;
font-weight: 600;
color: @gray-
9
;
color: @gray-
7
;
line-height: 1.3;
line-height: 1.3;
background: none;
background: none;
}
}
...
@@ -957,7 +973,7 @@ li {
...
@@ -957,7 +973,7 @@ li {
padding: 2px 6px;
padding: 2px 6px;
border-radius: 3px;
border-radius: 3px;
font-family: 'Courier New', monospace;
font-family: 'Courier New', monospace;
font-size: 1
3
px;
font-size: 1
6
px;
color: @error-color;
color: @error-color;
}
}
...
@@ -972,8 +988,8 @@ li {
...
@@ -972,8 +988,8 @@ li {
code {
code {
background: none;
background: none;
padding: 0;
padding: 0;
color: @gray-
9
;
color: @gray-
7
;
font-size: 1
3
px;
font-size: 1
6
px;
line-height: 1.4;
line-height: 1.4;
}
}
}
}
...
@@ -1038,12 +1054,12 @@ li {
...
@@ -1038,12 +1054,12 @@ li {
span {
span {
color: #ff4d4f;
color: #ff4d4f;
font-size: 1
4
px;
font-size: 1
6
px;
}
}
}
}
.image-caption {
.image-caption {
font-size: 1
3
px;
font-size: 1
6
px;
color: #666;
color: #666;
font-style: italic;
font-style: italic;
line-height: 1.4;
line-height: 1.4;
...
@@ -1072,7 +1088,7 @@ li {
...
@@ -1072,7 +1088,7 @@ li {
table {
table {
width: 100%;
width: 100%;
border-collapse: collapse;
border-collapse: collapse;
font-size: 1
3
px;
font-size: 1
6
px;
background-color: @white;
background-color: @white;
th,
th,
...
@@ -1131,7 +1147,7 @@ li {
...
@@ -1131,7 +1147,7 @@ li {
width: 100%;
width: 100%;
border-collapse: collapse;
border-collapse: collapse;
margin: 12px 0 0;
margin: 12px 0 0;
font-size: 1
3
px;
font-size: 1
6
px;
background-color: @white;
background-color: @white;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
max-width: 100%;
max-width: 100%;
...
@@ -1203,9 +1219,8 @@ li {
...
@@ -1203,9 +1219,8 @@ li {
outline: none;
outline: none;
resize: none;
resize: none;
height: 52px;
height: 52px;
font-size: 1
5
px;
font-size: 1
6
px;
transition: border-color 0.3s, box-shadow 0.3s;
transition: border-color 0.3s, box-shadow 0.3s;
background-color: @blue-light-2;
border: 1px solid @gray-3;
border: 1px solid @gray-3;
overflow: hidden;
overflow: hidden;
position: relative;
position: relative;
...
@@ -1217,9 +1232,9 @@ li {
...
@@ -1217,9 +1232,9 @@ li {
}
}
&:disabled {
&:disabled {
background-color:
@gray-2
;
background-color:
#F7F8FA
;
border-color:
@gray-3
;
border-color:
#DCDEE0
;
color: @gray-
5
;
color: @gray-
8
;
cursor: not-allowed;
cursor: not-allowed;
}
}
}
}
...
@@ -1235,7 +1250,7 @@ li {
...
@@ -1235,7 +1250,7 @@ li {
p {
p {
color: @gray-5;
color: @gray-5;
font-size: 1
2
px;
font-size: 1
6
px;
span {
span {
margin-right: 15px;
margin-right: 15px;
...
@@ -1263,7 +1278,7 @@ li {
...
@@ -1263,7 +1278,7 @@ li {
@media (max-width: 1000px) {
@media (max-width: 1000px) {
.chat-messages {
.chat-messages {
padding: 12px
14px
;
padding: 12px
20px !important
;
}
}
.chat-container{
.chat-container{
.chat-input-container {
.chat-input-container {
...
@@ -1277,7 +1292,7 @@ li {
...
@@ -1277,7 +1292,7 @@ li {
@media (max-width: 768px) {
@media (max-width: 768px) {
:deep(.message-table) {
:deep(.message-table) {
.data-table {
.data-table {
font-size: 1
2
px;
font-size: 1
6
px;
th,
th,
td {
td {
...
@@ -1298,7 +1313,7 @@ li {
...
@@ -1298,7 +1313,7 @@ li {
}
}
.table-summary {
.table-summary {
font-size: 1
2
px;
font-size: 1
6
px;
padding: 8px 10px;
padding: 8px 10px;
}
}
}
}
...
@@ -1315,14 +1330,14 @@ li {
...
@@ -1315,14 +1330,14 @@ li {
}
}
h3 {
h3 {
font-size: 1
5
px;
font-size: 1
6
px;
}
}
pre {
pre {
padding: 8px;
padding: 8px;
code {
code {
font-size: 1
2
px;
font-size: 1
6
px;
}
}
}
}
}
}
...
@@ -1332,11 +1347,11 @@ li {
...
@@ -1332,11 +1347,11 @@ li {
.option-item {
.option-item {
.option-content {
.option-content {
.option-number-title {
.option-number-title {
font-size: 1
4
px;
font-size: 1
6
px;
}
}
.option-url {
.option-url {
font-size: 1
1
px;
font-size: 1
6
px;
max-width: 100%;
max-width: 100%;
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment