chore:min-height: 300px; 替换成 min-height: 0px;
This commit is contained in:
@@ -271,9 +271,9 @@
|
||||
<view class="emoji-mask" @click="hideEmojiPanel"></view>
|
||||
<view class="emoji-panel">
|
||||
<view class="emoji-header">
|
||||
<text>选择表情</text>
|
||||
<text>表情</text>
|
||||
<button class="close-btn" @click="hideEmojiPanel">
|
||||
<text class="iconfont icon-close"></text>
|
||||
<text>×</text>
|
||||
</button>
|
||||
</view>
|
||||
<scroll-view class="emoji-grid" scroll-y>
|
||||
@@ -3518,75 +3518,75 @@ $radius-lg: 36rpx;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background-color: white;
|
||||
border-radius: $radius-lg $radius-lg 0 0;
|
||||
padding: 32rpx;
|
||||
box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.08);
|
||||
max-height: 60vh;
|
||||
background-color: #fff;
|
||||
border-radius: 24rpx 24rpx 0 0;
|
||||
padding: 0;
|
||||
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
|
||||
max-height: 55vh;
|
||||
|
||||
.emoji-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 24rpx;
|
||||
border-bottom: 2rpx solid #f0f4f8;
|
||||
padding-bottom: 16rpx;
|
||||
|
||||
text {
|
||||
font-size: 34rpx;
|
||||
font-weight: 600;
|
||||
color: $color-text;
|
||||
}
|
||||
|
||||
.close-btn {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
border-radius: 50%;
|
||||
background-color: $bg-main;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.2s ease;
|
||||
border: none;
|
||||
padding: 16rpx 20rpx;
|
||||
border-bottom: 1rpx solid #e5e5e5;
|
||||
background-color: #f7f7f7;
|
||||
|
||||
&:hover {
|
||||
background-color: #e8edf3;
|
||||
text {
|
||||
font-size: 30rpx;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.iconfont {
|
||||
font-size: 28rpx;
|
||||
color: $color-text-light;
|
||||
.close-btn {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
border-radius: 50%;
|
||||
background-color: transparent;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: none;
|
||||
|
||||
&:hover {
|
||||
background-color: #e5e5e5;
|
||||
}
|
||||
|
||||
text {
|
||||
font-size: 36rpx;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.emoji-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(8, 1fr);
|
||||
gap: 16rpx;
|
||||
max-height: 40vh;
|
||||
gap: 12rpx;
|
||||
padding: 16rpx 8rpx;
|
||||
overflow-y: auto;
|
||||
max-height: 50vh;
|
||||
|
||||
.emoji-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 12rpx;
|
||||
background-color: #f8f8f8;
|
||||
transition: all 0.2s ease;
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
border-radius: 8rpx;
|
||||
background-color: transparent;
|
||||
transition: all 0.15s ease;
|
||||
|
||||
&:hover {
|
||||
background-color: #e8edf3;
|
||||
transform: scale(1.1);
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: #d8dde3;
|
||||
background-color: #e0e0e0;
|
||||
}
|
||||
|
||||
.emoji-text {
|
||||
font-size: 36rpx;
|
||||
font-size: 44rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user