From 1087ab3de61150752d407bfdc44a0628caaa6e27 Mon Sep 17 00:00:00 2001 From: Gabriel Hernandez Date: Thu, 25 Sep 2025 15:43:52 +0100 Subject: [PATCH] fix styling of long error message (#33465) quick fix for the styling of one of the upload profile error message. **before** image **after** image --- .../OSSettings/cards/CustomSettings/_styles.scss | 5 +++++ .../CustomSettings/components/ProfileUploader/helpers.tsx | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/pages/ManageControlsPage/OSSettings/cards/CustomSettings/_styles.scss b/frontend/pages/ManageControlsPage/OSSettings/cards/CustomSettings/_styles.scss index a59c4fa641..eb5f1e9aef 100644 --- a/frontend/pages/ManageControlsPage/OSSettings/cards/CustomSettings/_styles.scss +++ b/frontend/pages/ManageControlsPage/OSSettings/cards/CustomSettings/_styles.scss @@ -32,3 +32,8 @@ max-width: none; } } + +// this is used to format the long error message when uploading invalid keys +.upload-profile-invalid-keys-error { + display: flex; +} diff --git a/frontend/pages/ManageControlsPage/OSSettings/cards/CustomSettings/components/ProfileUploader/helpers.tsx b/frontend/pages/ManageControlsPage/OSSettings/cards/CustomSettings/components/ProfileUploader/helpers.tsx index 84d1922408..f1e10021a6 100644 --- a/frontend/pages/ManageControlsPage/OSSettings/cards/CustomSettings/components/ProfileUploader/helpers.tsx +++ b/frontend/pages/ManageControlsPage/OSSettings/cards/CustomSettings/components/ProfileUploader/helpers.tsx @@ -129,7 +129,7 @@ export const getErrorMessage = (err: AxiosResponse) => { if (apiReason.includes("Keys in declaration (DDM) profile")) { return ( - <> +
Couldn't add. Keys in declaration (DDM) profile must contain only letters and start with a uppercase letter. Keys in Android profile @@ -141,7 +141,7 @@ export const getErrorMessage = (err: AxiosResponse) => { variant="flash-message-link" url="https://fleetdm.com/learn-more-about/how-to-craft-android-profile" /> - +
); }