Improved serverlist

This commit is contained in:
2026-08-22 11:14:51 +02:00
parent a9cf2d4c70
commit 78f5544952
+6 -5
View File
@@ -1,6 +1,7 @@
import Enclave from "@/app/app"; import Enclave from "@/app/app";
import { getHTTPUrl, saveServerList } from "@/lib/serverList"; import { getHTTPUrl, saveServerList } from "@/lib/serverList";
import { AddServerDialog } from "../dialog/AddServerDialog"; import { AddServerDialog } from "../dialog/AddServerDialog";
import { cn } from "@/lib/utils";
export default function ServerList({ export default function ServerList({
appRef, appRef,
@@ -16,11 +17,11 @@ export default function ServerList({
<img <img
src={getHTTPUrl(hostname, server.isSecure, "/icon")} src={getHTTPUrl(hostname, server.isSecure, "/icon")}
key={hostname} key={hostname}
className={ className={cn(
hostname === appRef.current?.server?.hostname "rounded-lg",
? "rounded-lg" hostname === appRef.current?.server?.hostname &&
: "rounded-full" "border-primary border border-2",
} )}
onClick={async () => { onClick={async () => {
if (!appRef.current) { if (!appRef.current) {