Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

fix(tags): add text wrapping for long tag descriptions to prevent overflow (#637)

Corentin Thomasset479a6030015d
diff --git a/.changeset/wet-laws-admire.md b/.changeset/wet-laws-admire.md
new file mode 100644
index 00000000..ed5b34f5
--- /dev/null
+++ b/.changeset/wet-laws-admire.md
@@ -0,0 +1,5 @@
+---
+"@papra/docker": patch
+---
+
+Fix tags table overflow for long tag descriptions: added some text wrapping for the description
diff --git a/apps/papra-client/src/modules/tags/pages/tags.page.tsx b/apps/papra-client/src/modules/tags/pages/tags.page.tsx
index 2ed5df75..ff460e20 100644
--- a/apps/papra-client/src/modules/tags/pages/tags.page.tsx
+++ b/apps/papra-client/src/modules/tags/pages/tags.page.tsx
@@ -347,7 +347,7 @@ export const TagsPage: Component = () => {
<TagLink {...tag} />
</div>
</TableCell>
- <TableCell>{tag.description || <span class="text-muted-foreground">{t('tags.form.no-description')}</span>}</TableCell>
+ <TableCell class="text-wrap">{tag.description || <span class="text-muted-foreground">{t('tags.form.no-description')}</span>}</TableCell>
<TableCell>
<A href={`/organizations/${params.organizationId}/documents?tags=${tag.id}`} class="inline-flex items-center gap-1 hover:underline">
<div class="i-tabler-file-text size-5 text-muted-foreground" />