Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 关于评论区的bug #126

Closed
mjsoftking opened this issue Mar 18, 2024 · 2 comments
Closed

feat: 关于评论区的bug #126

mjsoftking opened this issue Mar 18, 2024 · 2 comments

Comments

@mjsoftking
Copy link
Contributor

你当前使用的 Halo 版本

2.13.1

你当前使用的 Dream 版本

1.3.1

描述一下此特性

<halo:comment
group="content.halo.run"
th:kind="${type}"
th:attr="name=${post.metadata.name}"
和pjax兼容存在问题,测试1.3.1存在该问题

更多可查看issue
halo-dev/plugin-comment-widget#100

附加信息

No response

@mjsoftking
Copy link
Contributor Author

mjsoftking commented Mar 18, 2024

        <comment-widget
                group="content.halo.run"
                th:kind="${type}"
                version="v1alpha1"
                th:name="${post.metadata.name}"
        ></comment-widget>

此方式在评论插件2.0.1下可用
此方式version="v1alpha1"不可省略

@mjsoftking
Copy link
Contributor Author

mjsoftking commented Mar 18, 2024

还需要添加css,处理表情面板打开被遮挡的问题

//强制给评论插件增加z-index
加载评论组件的外层div选择器 {
  z-index: 99;
  position: relative;
}
//强制给评论插件错误层增加z-index
lit-toast-container {
  z-index: 100;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant