fix(emoji-box): 修复表情框样式问题并优化代码结构
重构表情框样式,移除冗余代码,调整布局和交互效果 更新构建文件和资源映射,确保样式正确加载
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user