From d6c6bf943e79b0be8ddf00d15b7fe3abcb76c022 Mon Sep 17 00:00:00 2001 From: nyne Date: Fri, 30 May 2025 20:07:20 +0800 Subject: [PATCH] Enhance tag input display with type badge and adjust dropdown width --- frontend/src/components/tag_input.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/tag_input.tsx b/frontend/src/components/tag_input.tsx index a426adf..babd78b 100644 --- a/frontend/src/components/tag_input.tsx +++ b/frontend/src/components/tag_input.tsx @@ -94,7 +94,10 @@ export default function TagInput({ onAdd, mainTag }: { onAdd: (tag: Tag) => void setTags([]) const input = document.getElementById("search_tags_input") as HTMLInputElement input.blur() - }}>{t.name} + }}> + {t.name} + {t.type && {t.type}} + }) } { @@ -106,11 +109,11 @@ export default function TagInput({ onAdd, mainTag }: { onAdd: (tag: Tag) => void } return
-