Skip to content

Commit

Permalink
fix: sort popover width
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Dec 15, 2024
1 parent cbbd69b commit 682267b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/Server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ export default function Servers() {
status === "all"
? filteredServers
: filteredServers.filter((server) =>
[status].includes(formatNezhaInfo(nezhaWsData.now, server).online ? "online" : "offline"),
)
[status].includes(formatNezhaInfo(nezhaWsData.now, server).online ? "online" : "offline"),
)

filteredServers = filteredServers.sort((a, b) => {
const serverAInfo = formatNezhaInfo(nezhaWsData.now, a)
Expand Down Expand Up @@ -248,7 +248,7 @@ export default function Servers() {
<CogIcon className="size-[13px]" />
</button>
</PopoverTrigger>
<PopoverContent className="py-2 px-2 w-fit max-w-56 rounded-[8px]">
<PopoverContent className="py-2 px-2 w-fit max-w-60 rounded-[8px]">
<div className="flex flex-col gap-2">
<section className="flex flex-col gap-1">
<Label className=" text-stone-500 text-xs">Sort by</Label>
Expand Down

0 comments on commit 682267b

Please sign in to comment.