feat: 样式调整

This commit is contained in:
2025-10-14 20:09:18 +08:00
parent 017289c694
commit f1e009d656
4 changed files with 22 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<template> <template>
<view class="chat-other"> <view class="chat-other pl-20">
<text>{{ text }}</text> <text>{{ text }}</text>
<slot></slot> <slot></slot>
</view> </view>

View File

@@ -5,6 +5,7 @@
flex-direction: column; flex-direction: column;
max-width: 100%; // ✅ 限制最大宽度 max-width: 100%; // ✅ 限制最大宽度
overflow-x: hidden; // ✅ 防止横向撑开 overflow-x: hidden; // ✅ 防止横向撑开
padding-left: 20px;
text { text {
font-size: $uni-font-size-base; font-size: $uni-font-size-base;

View File

@@ -7,7 +7,7 @@
overflow-x: auto; overflow-x: auto;
white-space: nowrap; white-space: nowrap;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
padding: 8px 16px; padding: 8px 0;
box-sizing: border-box; box-sizing: border-box;
} }
@@ -22,6 +22,9 @@
flex-shrink: 0; flex-shrink: 0;
white-space: nowrap; white-space: nowrap;
position: relative; position: relative;
&:first-child {
margin-left: 0;
}
.more-tips-item-title { .more-tips-item-title {
color: #00a6ff; color: #00a6ff;

View File

@@ -22,3 +22,19 @@
.pl-12 { .pl-12 {
padding-left: 12px; padding-left: 12px;
} }
.pl-16 {
padding-left: 16px;
}
.pr-16 {
padding-right: 16px;
}
.pl-20 {
padding-left: 20px;
}
.pr-20 {
padding-right: 20px;
}