Skip to content

Commit

Permalink
improve styles (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
uubulb authored Dec 6, 2024
1 parent 2ad9671 commit d702996
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/terminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const TerminalPage = () => {
<div className="px-8">
<div className="flex mt-6 mb-4">
<h1 className="flex-1 text-3xl font-bold tracking-tight">
Terminal
{`Terminal (${id})`}
</h1>
<div className="flex-2 flex ml-auto gap-2">
<FMCard id={id} />
Expand Down
22 changes: 12 additions & 10 deletions src/routes/service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function ServicePage() {
toast(t("Error"), {
description: t("Results.ErrorFetchingResource", { error: error.message }),
});
// eslint-disable-next-line react-hooks/exhaustive-deps
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [error]);

const columns: ColumnDef<Service>[] = [
Expand All @@ -43,7 +43,7 @@ export default function ServicePage() {
<Checkbox
checked={
table.getIsAllPageRowsSelected() ||
(table.getIsSomePageRowsSelected() && "indeterminate")
(table.getIsSomePageRowsSelected() && "indeterminate")
}
onCheckedChange={(value) => table.toggleAllPageRowsSelected(!!value)}
aria-label="Select all"
Expand Down Expand Up @@ -92,12 +92,12 @@ export default function ServicePage() {
<div className="max-w-48 whitespace-normal break-words">
{(() => {
switch (s.cover) {
case 0: {
return <span>{t("CoverAll")}</span>;
}
case 1: {
return <span>{t("IgnoreAll")}</span>;
}
case 0: {
return <span>{t("CoverAll")}</span>;
}
case 1: {
return <span>{t("IgnoreAll")}</span>;
}
}
})()}
</div>
Expand All @@ -106,8 +106,10 @@ export default function ServicePage() {
},
{
header: t("SpecificServers"),
accessorKey: "skipServers",
accessorFn: (row) => Object.keys(row.skip_servers ?? {}),
cell: ({ row }) => {
const s = row.original;
return <div className="max-w-32 whitespace-normal break-words">{Object.keys(s.skip_servers ?? {}).join(',')}</div>;
}
},
{
header: t("Type"),
Expand Down

0 comments on commit d702996

Please sign in to comment.