forked from BRETT/BRETT
Remove comments heading and empty state
Drop the "Comments" section title (including the count) and the "no comments yet" placeholder — the comment list now starts directly with skeletons or comments followed by the form. The comments.none key stays for the sidebar; comments.title is removed from both locales. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
@@ -992,10 +992,6 @@ async function deleteComment(commentId: number) {
|
||||
/>
|
||||
|
||||
<section class="mx-auto mt-6 w-full lg:w-2/5">
|
||||
<h2 class="mb-3 font-semibold">
|
||||
{{ $t('comments.title') }}<template v-if="data"> ({{ allComments.length }})</template>
|
||||
</h2>
|
||||
|
||||
<ul v-if="!data" class="space-y-3" aria-hidden="true">
|
||||
<li
|
||||
v-for="i in 3"
|
||||
@@ -1076,9 +1072,6 @@ async function deleteComment(commentId: number) {
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<p v-else class="text-sm text-muted-foreground">
|
||||
{{ $t('comments.none') }}
|
||||
</p>
|
||||
|
||||
<form
|
||||
v-if="user"
|
||||
|
||||
@@ -98,7 +98,6 @@
|
||||
"removePeriod": "Zeitraum-Filter entfernen"
|
||||
},
|
||||
"comments": {
|
||||
"title": "Kommentare",
|
||||
"none": "Noch keine Kommentare.",
|
||||
"loading": "Lade Kommentare…",
|
||||
"placeholder": "Kommentar schreiben… {'@'} zum Erwähnen, Dateien hierher ziehen",
|
||||
|
||||
@@ -98,7 +98,6 @@
|
||||
"removePeriod": "Remove time range filter"
|
||||
},
|
||||
"comments": {
|
||||
"title": "Comments",
|
||||
"none": "No comments yet.",
|
||||
"loading": "Loading comments…",
|
||||
"placeholder": "Write a comment… {'@'} to mention, drop files here",
|
||||
|
||||
Reference in New Issue
Block a user