{notSupported ? (
diff --git a/frontend/pages/DashboardPage/components/InfoCard/InfoCard.tsx b/frontend/pages/DashboardPage/components/InfoCard/InfoCard.tsx
index 6adacf8390..c578757524 100644
--- a/frontend/pages/DashboardPage/components/InfoCard/InfoCard.tsx
+++ b/frontend/pages/DashboardPage/components/InfoCard/InfoCard.tsx
@@ -21,7 +21,7 @@ interface IInfoCardProps {
text: string;
onClick?: () => void;
};
- total_host_count?: string | (() => string | undefined);
+ total_host_count?: number;
showTitle?: boolean;
}
@@ -109,9 +109,11 @@ const useInfoCard = ({
{title}
{total_host_count && {total_host_count}}
-
- {titleDetail}
-
+ {titleDetail && (
+
+ {titleDetail}
+
+ )}
{renderAction()}
diff --git a/frontend/pages/DashboardPage/components/InfoCard/_styles.scss b/frontend/pages/DashboardPage/components/InfoCard/_styles.scss
index 1574107381..e91195fa78 100644
--- a/frontend/pages/DashboardPage/components/InfoCard/_styles.scss
+++ b/frontend/pages/DashboardPage/components/InfoCard/_styles.scss
@@ -15,19 +15,9 @@
}
}
- &__section-title-group {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- align-items: center;
- }
-
&__section-title {
display: flex;
- flex-direction: row;
- align-items: center;
- padding-right: 12px;
-
+ gap: $pad-xsmall;
span {
background-color: $core-vibrant-blue;
color: $core-white;
@@ -35,9 +25,7 @@
font-weight: $bold;
padding: 2px 4px;
border-radius: 4px;
- margin-left: $pad-small;
position: relative;
- top: -2px;
}
}