Skip to content

Commit b312c60

Browse files
committed
feat(chat-room): 添加聊天室新主题和流畅模式功能
- 在移动端基础样式中添加提示框样式定义 - 在聊天室页面添加主题切换按钮和流畅模式开关 - 实现主题切换的JavaScript函数 - 添加新的聊天室布局文件chat-room-2.ftl - 实现新的聊天室布局的CSS样式和交互功能 - 添加滚动到顶部按钮和音乐播放器功能 - 实现消息区自动滚动到底部和加载更多历史消息功能
1 parent 998f3f3 commit b312c60

File tree

4 files changed

+583
-1
lines changed

4 files changed

+583
-1
lines changed

src/main/resources/css/mobile-base.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/scss/mobile-base.scss

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3850,4 +3850,38 @@ only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-de
38503850

38513851
.game-badge .badge-status-icon {
38523852
font-size: 14px;
3853+
}
3854+
3855+
.tip-wrapper {
3856+
position: relative;
3857+
display: inline-block;
3858+
cursor: pointer;
3859+
}
3860+
3861+
.tip-wrapper .tip-text {
3862+
visibility: hidden;
3863+
opacity: 0;
3864+
position: absolute;
3865+
bottom: 100%;
3866+
left: 50%;
3867+
transform: translateX(-50%);
3868+
background: rgba(236, 236, 236, 0.8);
3869+
backdrop-filter: blur(8px);
3870+
-webkit-backdrop-filter: blur(8px);
3871+
color: #000000;
3872+
padding: 6px 10px;
3873+
border-radius: 4px;
3874+
white-space: normal;
3875+
word-break: break-all;
3876+
width: 230px;
3877+
text-align: center;
3878+
font-size: 14px;
3879+
margin-bottom: 6px;
3880+
transition: opacity 0.2s;
3881+
z-index: 10;
3882+
}
3883+
3884+
.tip-wrapper:hover .tip-text {
3885+
visibility: visible;
3886+
opacity: 1;
38533887
}

0 commit comments

Comments
 (0)