From 4d2c7768c7706410139c8b32aee432ea4d97eb3a Mon Sep 17 00:00:00 2001 From: Rachael Shaw Date: Thu, 29 Jan 2026 17:02:31 -0600 Subject: [PATCH] #38666: Fix host list UI "jumping" bug (#39022) **Related issue:** Resolves #38666 # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. ## Testing - [x] QA'd all new/changed functionality manually --- changes/38666-hosts-ui-bug | 1 + .../components/HostsFilterBlock/HostsFilterBlock.tsx | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changes/38666-hosts-ui-bug diff --git a/changes/38666-hosts-ui-bug b/changes/38666-hosts-ui-bug new file mode 100644 index 0000000000..ef0ddf496a --- /dev/null +++ b/changes/38666-hosts-ui-bug @@ -0,0 +1 @@ +* Fixed a UI bug where the host list was being pushed down when viewing with a platform filter. \ No newline at end of file diff --git a/frontend/pages/hosts/ManageHostsPage/components/HostsFilterBlock/HostsFilterBlock.tsx b/frontend/pages/hosts/ManageHostsPage/components/HostsFilterBlock/HostsFilterBlock.tsx index f88eee04cc..f9db271166 100644 --- a/frontend/pages/hosts/ManageHostsPage/components/HostsFilterBlock/HostsFilterBlock.tsx +++ b/frontend/pages/hosts/ManageHostsPage/components/HostsFilterBlock/HostsFilterBlock.tsx @@ -604,7 +604,10 @@ const HostsFilterBlock = ({ ); }; - const showSelectedLabel = selectedLabel && selectedLabel.type !== "all"; + const showSelectedLabel = + selectedLabel && + selectedLabel.type !== "all" && + selectedLabel.type !== "platform"; if ( showSelectedLabel ||