From 13632eed926b337366e66ed4e20eadf0504054a3 Mon Sep 17 00:00:00 2001 From: Jacob Shandling <61553566+jacobshandling@users.noreply.github.com> Date: Fri, 3 Nov 2023 13:13:08 -0700 Subject: [PATCH] UI - 2 small fixes (#14935) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - restore circle to Apple icon on dashboard Screenshot 2023-11-03 at 12 49 03 PM - resolve DOM nesting issue from`p` > `div` Screenshot 2023-11-03 at 12 50 25 PM - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling --- .../ActivityFeed/ActivityItem/ActivityItem.tsx | 6 +++--- .../cards/ActivityFeed/ActivityItem/_styles.scss | 4 ++-- .../cards/HostsSummary/HostsSummary.tsx | 1 + .../DeleteHostModal/DeleteHostModal.tsx | 16 +++++++++++----- 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/frontend/pages/DashboardPage/cards/ActivityFeed/ActivityItem/ActivityItem.tsx b/frontend/pages/DashboardPage/cards/ActivityFeed/ActivityItem/ActivityItem.tsx index 2acb4dcf07..e01cd5af88 100644 --- a/frontend/pages/DashboardPage/cards/ActivityFeed/ActivityItem/ActivityItem.tsx +++ b/frontend/pages/DashboardPage/cards/ActivityFeed/ActivityItem/ActivityItem.tsx @@ -753,8 +753,8 @@ const ActivityItem = ({ size="small" hasWhiteBackground /> -
-

+

+
{indicatePremiumFeature && } {activity.type === ActivityType.UserLoggedIn ? ( @@ -784,7 +784,7 @@ const ActivityItem = ({ > {internationalTimeFormat(activityCreatedAt)} -

+
diff --git a/frontend/pages/DashboardPage/cards/ActivityFeed/ActivityItem/_styles.scss b/frontend/pages/DashboardPage/cards/ActivityFeed/ActivityItem/_styles.scss index f6042f1980..f1cd27ed84 100644 --- a/frontend/pages/DashboardPage/cards/ActivityFeed/ActivityItem/_styles.scss +++ b/frontend/pages/DashboardPage/cards/ActivityFeed/ActivityItem/_styles.scss @@ -16,7 +16,7 @@ grid-row-end: 3; } - &__details { + &__details-wrapper { grid-column-start: 3; grid-row-start: 1; grid-row-end: 3; @@ -29,7 +29,7 @@ padding-right: $pad-xsmall; } - p { + .activity-details { margin: 0; line-height: 16px; } diff --git a/frontend/pages/DashboardPage/cards/HostsSummary/HostsSummary.tsx b/frontend/pages/DashboardPage/cards/HostsSummary/HostsSummary.tsx index 686be3cd8e..625f291964 100644 --- a/frontend/pages/DashboardPage/cards/HostsSummary/HostsSummary.tsx +++ b/frontend/pages/DashboardPage/cards/HostsSummary/HostsSummary.tsx @@ -51,6 +51,7 @@ const HostsSummary = ({ const renderMacCount = (teamId?: number) => ( { - if (selectedHostIds && isAllMatchingHostsSelected && hostsCount && hostsCount >= 500) { - return " When deleting a large volume of hosts, it may take some time for this change to be reflected in the UI." + if ( + selectedHostIds && + isAllMatchingHostsSelected && + hostsCount && + hostsCount >= 500 + ) { + return " When deleting a large volume of hosts, it may take some time for this change to be reflected in the UI."; } - return "" - } + return ""; + }; return (

- This action will delete {hostText()} from your Fleet instance.{largeVolumeText()} + This action will delete {hostText()} from your Fleet instance. + {largeVolumeText()}

If the hosts come back online, they will automatically re-enroll.