refactor(commentList): 使用el-popover重构表情选择框,优化样式和交互逻辑

- 将表情选择框改为使用el-popover组件实现
- 调整表情选择框的样式和定位
- 增加表情图标宽度和对齐方式
- 更新表情数据列表
- 优化相关CSS样式
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-09-01 14:44:02 +08:00
parent 44c34d043d
commit d8f5b53e4a
35 changed files with 3957 additions and 1150 deletions

View File

@@ -1022,22 +1022,39 @@ a {
margin-right: 20px;
position: relative;
z-index: 1;
.emoji-popover {
box-sizing: border-box;
* {
box-sizing: border-box;
}
.el-popper__arrow {
z-index: 1;
&:before {
background-color: #fff;
border-top-color: #fff !important;
border-left-color: #fff !important;
}
}
}
&.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;
}
// &::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 {
@@ -1050,31 +1067,33 @@ a {
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;
// top: 45px;
// position: absolute;
// z-index: 1;
// left: -14px;
// border: 1px solid rgb(235, 235, 235);
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;
}
}