Skip to content

Lightweight server monitoring with historical data, docker stats, and alerts.

chore(site): make view options buttons icon-only and consistent (#2665)

Sven van Ginkelc84f517ab929
diff --git a/internal/site/src/components/network-monitors-table/network-monitors-table.tsx b/internal/site/src/components/network-monitors-table/network-monitors-table.tsx
index e6729f240..71c5b91d3 100644
--- a/internal/site/src/components/network-monitors-table/network-monitors-table.tsx
+++ b/internal/site/src/components/network-monitors-table/network-monitors-table.tsx
@@ -357,9 +357,8 @@ export default function NetworkMonitorsTableNew({
)}
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="outline">
- <Settings2Icon className="me-1.5 size-4 opacity-80" />
- <Trans>View</Trans>
+ <Button aria-label={t`View`} variant="outline" size="icon">
+ <Settings2Icon className="size-4 opacity-80" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="h-72 md:h-auto min-w-48 md:min-w-auto overflow-y-auto">
diff --git a/internal/site/src/components/routes/system/info-bar.tsx b/internal/site/src/components/routes/system/info-bar.tsx
index add995a1d..ee9c1339b 100644
--- a/internal/site/src/components/routes/system/info-bar.tsx
+++ b/internal/site/src/components/routes/system/info-bar.tsx
@@ -204,13 +204,8 @@ export default function InfoBar({
<ChartTimeSelect className="w-full xl:w-40" agentVersion={chartData.agentVersion} />
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button
- aria-label={t`Settings`}
- variant="outline"
- size="icon"
- className="hidden xl:flex p-0 text-primary"
- >
- <Settings2Icon className="size-4 opacity-90" />
+ <Button aria-label={t`View`} variant="outline" size="icon" className="hidden xl:flex">
+ <Settings2Icon className="size-4 opacity-80" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="min-w-44">
diff --git a/internal/site/src/components/systems-table/systems-table.tsx b/internal/site/src/components/systems-table/systems-table.tsx
index fb0ab442b..c533dad9d 100644
--- a/internal/site/src/components/systems-table/systems-table.tsx
+++ b/internal/site/src/components/systems-table/systems-table.tsx
@@ -244,9 +244,8 @@ export default function SystemsTable() {
</div>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="outline">
- <Settings2Icon className="me-1.5 size-4 opacity-80" />
- <Trans>View</Trans>
+ <Button aria-label={t`View`} variant="outline" size="icon">
+ <Settings2Icon className="size-4 opacity-80" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="h-72 md:h-auto min-w-48 md:min-w-auto overflow-y-auto">