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">
|
<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">
|
<ul v-if="!data" class="space-y-3" aria-hidden="true">
|
||||||
<li
|
<li
|
||||||
v-for="i in 3"
|
v-for="i in 3"
|
||||||
@@ -1076,9 +1072,6 @@ async function deleteComment(commentId: number) {
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p v-else class="text-sm text-muted-foreground">
|
|
||||||
{{ $t('comments.none') }}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<form
|
<form
|
||||||
v-if="user"
|
v-if="user"
|
||||||
|
|||||||
@@ -98,7 +98,6 @@
|
|||||||
"removePeriod": "Zeitraum-Filter entfernen"
|
"removePeriod": "Zeitraum-Filter entfernen"
|
||||||
},
|
},
|
||||||
"comments": {
|
"comments": {
|
||||||
"title": "Kommentare",
|
|
||||||
"none": "Noch keine Kommentare.",
|
"none": "Noch keine Kommentare.",
|
||||||
"loading": "Lade Kommentare…",
|
"loading": "Lade Kommentare…",
|
||||||
"placeholder": "Kommentar schreiben… {'@'} zum Erwähnen, Dateien hierher ziehen",
|
"placeholder": "Kommentar schreiben… {'@'} zum Erwähnen, Dateien hierher ziehen",
|
||||||
|
|||||||
@@ -98,7 +98,6 @@
|
|||||||
"removePeriod": "Remove time range filter"
|
"removePeriod": "Remove time range filter"
|
||||||
},
|
},
|
||||||
"comments": {
|
"comments": {
|
||||||
"title": "Comments",
|
|
||||||
"none": "No comments yet.",
|
"none": "No comments yet.",
|
||||||
"loading": "Loading comments…",
|
"loading": "Loading comments…",
|
||||||
"placeholder": "Write a comment… {'@'} to mention, drop files here",
|
"placeholder": "Write a comment… {'@'} to mention, drop files here",
|
||||||
|
|||||||
Reference in New Issue
Block a user