fix: simplify className usage for icons in Server component

This commit is contained in:
hamster1963
2026-05-25 01:42:49 +08:00
parent a1b382c3eb
commit 4b0106c011
+3 -7
View File
@@ -317,7 +317,7 @@ export default function Servers() {
}, },
)} )}
> >
<MapIcon className={cn("size-[13px]")} /> <MapIcon className="size-[13px]" />
</button> </button>
<button <button
onClick={() => { onClick={() => {
@@ -338,7 +338,7 @@ export default function Servers() {
}, },
)} )}
> >
<ChartBarSquareIcon className={cn("size-[13px]")} /> <ChartBarSquareIcon className="size-[13px]" />
</button> </button>
<button <button
onClick={() => { onClick={() => {
@@ -356,11 +356,7 @@ export default function Servers() {
}, },
)} )}
> >
<ViewColumnsIcon <ViewColumnsIcon className="size-[13px]" />
className={cn("size-[13px]", {
"text-white": inline === "1",
})}
/>
</button> </button>
<GroupSwitch <GroupSwitch
tabs={groupTabs} tabs={groupTabs}