diff --git a/app/components/tag/tag-add.tsx b/app/components/tag/tag-add.tsx index 3025736..0f7ae21 100644 --- a/app/components/tag/tag-add.tsx +++ b/app/components/tag/tag-add.tsx @@ -53,7 +53,7 @@ export function TagAdd({ return ( diff --git a/app/components/tag/tag-list-2.tsx b/app/components/tag/tag-list-2.tsx index 98363b7..e4b6c77 100644 --- a/app/components/tag/tag-list-2.tsx +++ b/app/components/tag/tag-list-2.tsx @@ -65,7 +65,7 @@ const TagList2Options = ({ tag }: ITagList2OptionsProps) => { 编辑 - + @@ -167,7 +167,7 @@ export default function TagList2({ list, className }: ITagListProps) { 新建标签 - + diff --git a/app/components/tag/tag-list.tsx b/app/components/tag/tag-list.tsx index d5b66b4..97e7dd1 100644 --- a/app/components/tag/tag-list.tsx +++ b/app/components/tag/tag-list.tsx @@ -7,6 +7,7 @@ import { CommandList, CommandSeparator, } from "@/components/ui/command"; +import { ScrollArea } from "@/components/ui/scroll-area"; import { cn } from "@/lib/utils"; import { Check, Plus } from "lucide-react"; import React, { useState } from "react"; @@ -21,22 +22,26 @@ export default function TagList({ list, className }: ITagListProps) { - {list.map((tag) => ( - setSelectedValue(v + "")} - > -
-
- {tag.name} -
- {selectedValue === tag.id + "" && ( - - )} - - ))} + + {list.map((tag) => ( + setSelectedValue(v + "")} + > +
+
+ {tag.name} +
+ {selectedValue === tag.id + "" && ( + + )} + + ))} +