Skip to content

Commit ba74345

Browse files
committed
small costmetic touch on empty state of comments component
1 parent c1b6986 commit ba74345

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/mdx/Comments.astro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ const url = `https://${host}/@${userName}/${mastodonRef}`;
115115
margin-right: 0;
116116
margin-left: 2rem;
117117
}
118+
119+
#comments-container[data-empty] {
120+
margin-top: 1rem;
121+
}
118122
}
119123
</style>
120124
<hr />
@@ -180,6 +184,7 @@ const url = `https://${host}/@${userName}/${mastodonRef}`;
180184

181185
if (!Array.isArray(descendants) || descendants.length === 0) {
182186
commentsWrapper.innerHTML = "No discussion found";
187+
commentsWrapper.dataset["empty"] = "true";
183188
descendants = [];
184189
}
185190

0 commit comments

Comments
 (0)