Skip to content

A self-hosted media server and file management system

fix: blank space in folder description

aminnausin5e1b0ccec8ea
diff --git a/resources/js/components/folders/FolderDescription.vue b/resources/js/components/folders/FolderDescription.vue
index 1a425cf3..5833c3c7 100644
--- a/resources/js/components/folders/FolderDescription.vue
+++ b/resources/js/components/folders/FolderDescription.vue
@@ -90,6 +90,16 @@ onMounted(() => {
<div class="flex flex-1 flex-col gap-1">
<h3 class="text-xl font-semibold capitalize">{{ data.series?.title ?? data.title }}</h3>
<p class="text-foreground-1 text-sm" v-if="data.series?.studio">{{ data.series.studio }} · {{ data.path?.split('/')?.[0] }}</p>
+ <div class="flex w-full flex-1 flex-wrap gap-1" v-if="data.series?.folder_tags?.length">
+ <MediaTag
+ v-for="tag in data.series.folder_tags.slice(0, Math.min(5, data.series.folder_tags.length))"
+ :key="tag.id"
+ class="bg-surface-3! text-foreground-0! py-0.5 text-xs dark:bg-neutral-900!"
+ >
+ {{ tag.name }}
+ </MediaTag>
+ </div>
+ <MediaTag v-else class="bg-surface-3! text-foreground-0! w-fit py-0.5 text-xs dark:bg-neutral-900!"> No Tags </MediaTag>
</div>
<div class="flex flex-col items-end gap-1 tabular-nums" v-if="data.series">
@@ -107,16 +117,6 @@ onMounted(() => {
</p>
</div>
</div>
-
- <div class="flex w-full flex-1 flex-wrap gap-1" v-if="data.series?.folder_tags?.length">
- <MediaTag
- v-for="tag in data.series.folder_tags.slice(0, Math.min(5, data.series.folder_tags.length))"
- :key="tag.id"
- class="bg-surface-3! text-foreground-0! py-0.5 text-xs dark:bg-neutral-900!"
- >
- {{ tag.name }}
- </MediaTag>
- </div>
</div>
<article :class="['text-foreground-1 flex w-full flex-1 flex-col justify-between gap-1 text-sm leading-relaxed text-balance', { 'max-h-21': !isExpanded }]">