From 6d06d3d15f153f58e6f168debc9cd5bec4094be7 Mon Sep 17 00:00:00 2001 From: Frank Stellmacher <171614930+Psychotoxical@users.noreply.github.com> Date: Tue, 19 May 2026 00:23:37 +0200 Subject: [PATCH] fix(servers): drop scan icons from switcher dropdown, check back on the right (#789) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The compact ServerScanActions rendered inside the server-switcher dropdown crowded each row with two extra icons. Drop the scan controls from the dropdown — they remain available on the Settings server cards (variant="card") — and restore the single-button row layout with the check / spinner pinned to the right edge. Partial revert of #780 for the switcher only; Settings card actions unchanged. --- src/components/ConnectionIndicator.tsx | 38 +++++++++----------------- 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/src/components/ConnectionIndicator.tsx b/src/components/ConnectionIndicator.tsx index cad14fec..f1b81730 100644 --- a/src/components/ConnectionIndicator.tsx +++ b/src/components/ConnectionIndicator.tsx @@ -9,7 +9,6 @@ import { useAuthStore } from '../store/authStore'; import { switchActiveServer } from '../utils/server/switchActiveServer'; import { showToast } from '../utils/ui/toast'; import { serverListDisplayLabel } from '../utils/server/serverDisplayName'; -import ServerScanActions from './settings/ServerScanActions'; interface Props { status: ConnectionStatus; @@ -164,34 +163,23 @@ export default function ConnectionIndicator({ status, isLan, serverName }: Props const busy = switchingId !== null; const labelText = serverListDisplayLabel(srv, servers); return ( -
onPickServer(srv)} > - - {switchingId === srv.id ? ( -
- ) : active ? ( - - ) : null} - - - -
+ {labelText} + {switchingId === srv.id ? ( +
+ ) : active ? ( + + ) : ( + + )} + ); })}