fix(emoji-box): 修复表情框样式问题并优化代码结构

重构表情框样式,移除冗余代码,调整布局和交互效果
更新构建文件和资源映射,确保样式正确加载
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-09-01 14:44:10 +08:00
parent e2182f9c79
commit 0d111436af
48 changed files with 649 additions and 444 deletions

View File

@@ -724,21 +724,6 @@
position: relative;
z-index: 1;
}
.content .right .comment-box .input-box .bottom .operate .item.pitch .emoji-box {
display: flex;
}
.content .right .comment-box .input-box .bottom .operate .item.pitch::after {
content: "";
width: 28px;
height: 28px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
border-radius: 5px;
z-index: -1;
}
.content .right .comment-box .input-box .bottom .operate .item .icon {
width: 16px;
height: 16px;
@@ -746,34 +731,20 @@
/* 鼠标悬停时显示为可点击 */
}
.content .right .comment-box .input-box .bottom .operate .item .emoji-box {
width: 581px;
border-radius: 8px;
background-color: #fff;
filter: drop-shadow(0 0 11px rgba(0, 0, 0, 0.1));
top: 45px;
position: absolute;
z-index: 1;
left: -14px;
border: 1px solid #ebebeb;
display: none;
flex-wrap: wrap;
font-size: 22px;
padding: 8px;
}
.content .right .comment-box .input-box .bottom .operate .item .emoji-box::after {
content: "";
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 8px solid #ffffff;
position: absolute;
top: -8px;
left: 15px;
display: flex;
}
.content .right .comment-box .input-box .bottom .operate .item .emoji-box .emoji-icon {
margin: 5px;
cursor: pointer;
width: 30px;
text-align: center;
}
.content .right .comment-box .input-box .bottom .operate .item .file {
opacity: 0;

View File

@@ -858,22 +858,23 @@
margin-right: 20px;
position: relative;
z-index: 1;
&.pitch {
.emoji-box {
display: flex;
}
&::after {
content: "";
width: 28px;
height: 28px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
border-radius: 5px;
z-index: -1;
// display: flex;
}
// &::after {
// content: "";
// width: 28px;
// height: 28px;
// position: absolute;
// top: 50%;
// left: 50%;
// transform: translate(-50%, -50%);
// background-color: #fff;
// border-radius: 5px;
// z-index: -1;
// }
}
.icon {
@@ -883,34 +884,37 @@
}
.emoji-box {
width: 581px;
// width: 581px;
border-radius: 8px;
background-color: #fff;
// box-shadow: 0 0 11px rgba(0, 0, 0, 0.1);
filter: drop-shadow(0 0 11px rgba(0, 0, 0, 0.1));
top: 45px;
position: absolute;
z-index: 1;
left: -14px;
border: 1px solid rgb(235, 235, 235);
display: none;
// position: absolute;
// z-index: 1;
// left: -14px;
// border: 1px solid rgb(235, 235, 235);
// display: none;
flex-wrap: wrap;
font-size: 22px;
padding: 8px;
&::after {
content: "";
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 8px solid #ffffff;
position: absolute;
top: -8px;
left: 15px;
}
display: flex;
// &::after {
// content: "";
// width: 0;
// height: 0;
// border-left: 8px solid transparent;
// border-right: 8px solid transparent;
// border-bottom: 8px solid #ffffff;
// position: absolute;
// top: -8px;
// left: 15px;
// }
.emoji-icon {
margin: 5px;
cursor: pointer;
width: 30px;
text-align: center;
}
}