From 743d2b2c9620751ec782eab3dc85a662bd228d53 Mon Sep 17 00:00:00 2001 From: Gabriel Hernandez Date: Thu, 30 Oct 2025 10:39:30 +0000 Subject: [PATCH] add truncation to data set values in certificate details modal (#34920) **Related issue:** Fixes #34652 Fixes an issue with the organizational unit value overflowing in the certificate details modal. This adds truncation to all data set values in this component so that all values will be truncated if they overflow --- .../CertificateDetailsModal.tsx | 51 ++++++++++++------- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/frontend/pages/hosts/details/modals/CertificateDetailsModal/CertificateDetailsModal.tsx b/frontend/pages/hosts/details/modals/CertificateDetailsModal/CertificateDetailsModal.tsx index 8f59d36eaf..ee8d33d987 100644 --- a/frontend/pages/hosts/details/modals/CertificateDetailsModal/CertificateDetailsModal.tsx +++ b/frontend/pages/hosts/details/modals/CertificateDetailsModal/CertificateDetailsModal.tsx @@ -5,6 +5,7 @@ import { IHostCertificate } from "interfaces/certificates"; import Modal from "components/Modal"; import DataSet from "components/DataSet"; import Button from "components/buttons/Button"; +import TooltipTruncatedText from "components/TooltipTruncatedText"; import { monthDayYearFormat } from "utilities/date_format"; const baseClass = "certificate-details-modal"; @@ -88,28 +89,30 @@ const CertificateDetailsModal = ({ {subjectCountry && ( } orientation="horizontal" /> )} {subjectOrganization && ( } orientation="horizontal" /> )} {subjectOrganizationalUnit && ( + } orientation="horizontal" /> )} {subjectCommonName && ( } orientation="horizontal" /> )} @@ -123,28 +126,30 @@ const CertificateDetailsModal = ({ {issuerCountry && ( } orientation="horizontal" /> )} {issuerOrganization && ( } orientation="horizontal" /> )} {issuerOrganizationalUnit && ( + } orientation="horizontal" /> )} {issuerCommonName && ( } orientation="horizontal" /> )} @@ -158,14 +163,22 @@ const CertificateDetailsModal = ({ {not_valid_before && ( + } orientation="horizontal" /> )} {not_valid_after && ( + } orientation="horizontal" /> )} @@ -179,35 +192,35 @@ const CertificateDetailsModal = ({ {key_algorithm && ( } orientation="horizontal" /> )} {!!key_strength && ( } orientation="horizontal" /> )} {key_usage && ( } orientation="horizontal" /> )} {serial && ( } orientation="horizontal" /> )} {serialDecimal && ( } orientation="horizontal" /> )} @@ -220,7 +233,11 @@ const CertificateDetailsModal = ({
+ } orientation="horizontal" />
@@ -231,7 +248,7 @@ const CertificateDetailsModal = ({
} orientation="horizontal" />