feat(audio): 改进音频自动播放逻辑

- 在HTML中将音频preload属性从none改为auto
- 添加用户交互检测以提高自动播放成功率
- 使用setTimeout延迟播放尝试以绕过浏览器限制
- 移除不必要的console.error输出
- 优化CSS以确保评论头像正确显示
This commit is contained in:
hehh
2025-11-30 18:27:31 +08:00
parent a871a734ee
commit 67b7c0e5f9
3 changed files with 17 additions and 11 deletions

View File

@@ -450,6 +450,12 @@
height: 28px !important;
object-fit: cover; /* 修复移动端头像拉伸问题 */
}
.atk-comment>.atk-avatar img {
object-fit: cover;
object-position: center;
width: 28px !important;
height: 28px !important;
}
.atk-meta {
font-size: 12px !important;