Unverified Commit 6866b6c3 authored by 远浅's avatar 远浅 Committed by GitHub

fix: unified tag sorting logic (#1323)

parent f86816fe
...@@ -103,7 +103,9 @@ const CreateTagDialog: React.FC<Props> = (props: Props) => { ...@@ -103,7 +103,9 @@ 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)
.sort()
.map((tag) => (
<span <span
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" 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} key={tag}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment