Skip to content

Commit

Permalink
fix: client and server width
Browse files Browse the repository at this point in the history
  • Loading branch information
VaalaCat committed May 12, 2024
1 parent 97f13d2 commit 2e2de46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion www/components/client_item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const ClientInfo = ({ client }: { client: ClientTableSchema }) => {
client.stopped ? 'text-yellow-500' : 'text-green-500') : 'text-red-500'

return (
<div className={`p-2 border rounded font-mono w-fit ${infoColor}`}>
<div className={`p-2 border rounded font-mono w-fit ${infoColor} text-nowrap`}>
{`${clientsInfo.data?.clients[client.id].ping}ms, ${trans(clientsInfo.data?.clients[client.id])}`}
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion www/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const RootLayout = ({
</div>
<div className="flex">
{sidebar}
<div className="my-2 ml-0 mr-2 max-w-full w-full">{children}</div>
<div className="my-2 ml-0 mr-2 max-w-[calc(100vw-100px)] w-full">{children}</div>
</div>
<Toaster />
</main>
Expand Down
2 changes: 1 addition & 1 deletion www/components/server_item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export const ServerInfo = ({ server }: { server: ServerTableSchema }) => {
clientsInfo.data?.clients[server.id]?.status === ClientStatus_Status.ONLINE ? 'text-green-500' : 'text-red-500'

return (
<div className={`p-2 border rounded font-mono w-fit ${infoColor}`}>
<div className={`p-2 border rounded font-mono w-fit ${infoColor} text-nowrap`}>
{`${clientsInfo.data?.clients[server.id].ping}ms, ${trans(clientsInfo.data?.clients[server.id])}`}
</div>
)
Expand Down

0 comments on commit 2e2de46

Please sign in to comment.