fix: unified tag sorting logic (#1323)

pull/1326/head
远浅 2 years ago committed by GitHub
parent f86816fea2
commit 6866b6c30d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -103,15 +103,17 @@ const CreateTagDialog: React.FC<Props> = (props: Props) => {
<> <>
<p className="w-full mt-2 mb-1 text-sm text-gray-400">All tags</p> <p className="w-full mt-2 mb-1 text-sm text-gray-400">All tags</p>
<div className="w-full flex flex-row justify-start items-start flex-wrap"> <div className="w-full flex flex-row justify-start items-start flex-wrap">
{tagNameList.map((tag) => ( {Array.from(tagNameList)
<span .sort()
className="max-w-[120px] text-sm mr-2 mt-1 font-mono cursor-pointer truncate dark:text-gray-300 hover:opacity-60 hover:line-through" .map((tag) => (
key={tag} <span
onClick={() => handleDeleteTag(tag)} className="max-w-[120px] text-sm mr-2 mt-1 font-mono cursor-pointer truncate dark:text-gray-300 hover:opacity-60 hover:line-through"
> key={tag}
#{tag} onClick={() => handleDeleteTag(tag)}
</span> >
))} #{tag}
</span>
))}
</div> </div>
</> </>
)} )}

Loading…
Cancel
Save