안녕하세요,
이 주제를 보게 되면서 이전에 이것에 관한 커밋을 본 적이 있다는 기억이 났습니다. ![]()
지금은 이것이 작동할 것 같습니다 ![]()
Header
<script type="text/discourse-plugin" version="0.8">
api.includePostAttributes('topicMap');
</script>
또한 다른 게시물이 없을 때 불필요한 통계를 숨기기 위해 작은 CSS를 추가했습니다.
Common / CSS
body:not(.archetype-private_message) {
.topic-post.regular {
// if last-of-type is the #post_1
&:last-of-type {
article#post_1 {
.topic-map {
width: max-content;
nav.buttons {
display: none;
}
ul li {
// hide all statistics but views
&:not(.secondary.views) {
display: none;
}
}
// show views on mobile view
.secondary.views {
.mobile-view & {
display: list-item;
text-align: center;
}
}
}
}
}
}
}
Desktop (with no reply)
Mobile (with no reply)
누군가 답글을 달면 다시 기본 상태로 돌아갑니다.



