Skip to content

Commit 7efd157

Browse files
committed
fix(demo): fixed multiple style issues
1 parent 581382b commit 7efd157

File tree

29 files changed

+117
-97
lines changed

29 files changed

+117
-97
lines changed

packages/pro-components/chat/attachments/_example/file/index.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,44 @@ Page({
22
data: {
33
items: [
44
{
5-
fileType: 'pdf',
6-
name: 'document.pdf',
7-
url: 'https://example.com/document.pdf',
5+
fileType: 'doc',
6+
name: 'word-file.docxf',
7+
url: 'https://example.com/word-file.docxf',
88
size: 222859,
99
status: 'success',
1010
},
1111
{
12-
fileType: 'doc',
13-
name: 'report.docx',
14-
url: 'https://example.com/report.docx',
12+
fileType: 'xls',
13+
name: 'excel-file.xlsx',
14+
url: 'https://example.com/excel-file.xlsx',
1515
size: 222859,
1616
status: 'success',
1717
},
1818
{
19-
fileType: 'audio',
20-
name: 'audio.mp3',
21-
url: 'https://example.com/audio.mp3',
19+
fileType: 'pdf',
20+
name: 'pdf-file.pdf',
21+
url: 'https://example.com/pdf-file.pdf',
2222
size: 222859,
2323
status: 'success',
2424
},
2525
{
2626
fileType: 'ppt',
27-
name: 'presentation.ppt',
28-
url: 'https://example.com/presentation.ppt',
27+
name: 'ppt-file.pptx',
28+
url: 'https://example.com/ppt-file.pptx',
2929
size: 222859,
3030
status: 'success',
3131
},
3232
{
33-
fileType: 'xls',
34-
name: 'spreadsheet.xls',
35-
url: 'https://example.com/spreadsheet.xls',
33+
fileType: 'video',
34+
name: 'video-file.mp4',
35+
url: 'https://example.com/video-file.mp4',
3636
size: 222859,
3737
status: 'success',
3838
},
3939
{
40-
fileType: 'video',
41-
name: 'video.mp4',
42-
url: 'https://example.com/video.mp4',
40+
fileType: 'audio',
41+
name: 'audio-file.mp3',
42+
url: 'https://example.com/audio-file.mp3',
4343
size: 222859,
4444
status: 'success',
4545
},

packages/pro-components/chat/attachments/_example/file/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.chat-example {
22
display: grid;
33
grid-template-columns: 1fr 1fr;
4-
gap: 32rpx;
4+
gap: 32rpx 0;
55

66
padding: 32rpx;
77
box-sizing: border-box;

packages/pro-components/chat/attachments/attachments.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@
174174
font-style: normal;
175175
font-weight: 400;
176176
line-height: @attachments-desc-line-height;
177+
margin-top: -4rpx;
177178
}
178179
}
179180
}

packages/pro-components/chat/chat-actionbar/chat-actionbar.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@
7070
// 操作项
7171
&__item {
7272
color: @chat-actionbar-item-color;
73-
padding: @chat-actionbar-item-padding;
73+
margin: 8rpx 0;
74+
padding: 8rpx 28rpx;
7475
border-right: 2rpx solid @component-stroke;
7576
background-color: unset;
7677
outline: none;

packages/pro-components/chat/chat-list/_example/agent/index.wxss

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@
77
padding: 0 0 0 32rpx;
88
box-sizing: border-box;
99
}
10-
1110
.t-chat-message {
12-
padding-right: 32rpx;
11+
padding: 0 32rpx;
1312
}
1413

1514
.preview {
1615
padding: 16rpx;
1716
display: flex;
1817
justify-content: space-between;
19-
border: 1px solid black;
18+
border: 1px solid var(--td-component-border);
2019
}
2120

2221
.step {
@@ -36,17 +35,17 @@
3635
.step-text.command {
3736
padding: 16rpx;
3837
border-radius: 16rpx;
39-
background-color: #f3f3f3;
38+
background-color: var(--td-bg-color-secondarycontainer);
4039
display: flex;
4140
font-size: 28rpx;
4241
line-height: 44rpx;
43-
color: rgba(0, 0, 0, 0.6);
42+
color: var(--td-text-color-secondary);
4443
}
4544

4645
.step-text.result {
4746
font-size: 28rpx;
4847
line-height: 44rpx;
49-
color: rgba(0, 0, 0, 0.9);
48+
color: var(--td-text-color-primary);
5049
}
5150

5251
.step-icon {
@@ -56,8 +55,8 @@
5655

5756
.t-steps-item__circle--finish {
5857
background-color: transparent;
59-
color: #000000e5;
60-
border: 1px solid #000000e5;
58+
color: var(--td-text-color-primary);
59+
border: 1px solid var(--td-text-color-primary);
6160
width: 16px;
6261
height: 16px;
6362
}
@@ -67,10 +66,10 @@
6766
}
6867

6968
.t-steps-item__line--finish {
70-
background-color: #dcdcdc;
69+
background-color: var(--td-component-border);
7170
}
7271

7372
.t-steps-item__title--finish {
74-
color: #000000e5;
73+
color: var(--td-text-color-primary);
7574
font-weight: 600;
7675
}

packages/pro-components/chat/chat-list/_example/base/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
}
1010

1111
.t-chat-message {
12-
padding-right: 32rpx;
12+
padding: 0 32rpx;
1313
}

packages/pro-components/chat/chat-list/_example/code/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010

1111
.t-chat-message {
12-
padding-right: 32rpx;
12+
padding: 0 32rpx;
1313
}
1414

1515
.preview {

packages/pro-components/chat/chat-list/_example/custom/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010

1111
.t-chat-message {
12-
padding-right: 32rpx;
12+
padding: 0 32rpx;
1313
}
1414

1515
.chart-chat .assistant .t-chat__detail {

packages/pro-components/chat/chat-list/_example/docs/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010

1111
.t-chat-message {
12-
padding-right: 32rpx;
12+
padding: 0 32rpx;
1313
}
1414

1515
.preview {

packages/pro-components/chat/chat-list/_example/hook-component/index.wxss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
}
1010

1111
.t-chat-message {
12-
padding-right: 32rpx;
12+
padding: 0 32rpx;
1313
}

0 commit comments

Comments
 (0)