diff --git a/app/react/components/Tip/TooltipWithChildren/TooltipWithChildren.module.css b/app/react/components/Tip/TooltipWithChildren/TooltipWithChildren.module.css index 3f7edf69e..184493b8b 100644 --- a/app/react/components/Tip/TooltipWithChildren/TooltipWithChildren.module.css +++ b/app/react/components/Tip/TooltipWithChildren/TooltipWithChildren.module.css @@ -7,10 +7,11 @@ color: var(--text-tooltip-color) !important; border-radius: 10px !important; box-shadow: 0 2px 4px 0 rgba(34, 36, 38, 0.12), 0 2px 10px 0 rgba(34, 36, 38, 0.15) !important; - min-width: 300px; + min-width: 50px; font-size: 1rem !important; text-align: left; font-weight: 400; + width: max-content; } .tooltip:hover { diff --git a/app/react/components/form-components/FormControl/FormControl.tsx b/app/react/components/form-components/FormControl/FormControl.tsx index 9a76da009..80889fe8c 100644 --- a/app/react/components/form-components/FormControl/FormControl.tsx +++ b/app/react/components/form-components/FormControl/FormControl.tsx @@ -15,6 +15,7 @@ export interface Props { children: ReactNode; errors?: ReactNode; required?: boolean; + setTooltipHtmlMessage?: boolean; } export function FormControl({ @@ -25,6 +26,7 @@ export function FormControl({ children, errors, required, + setTooltipHtmlMessage, }: PropsWithChildren) { return (
*} - {tooltip && } + {tooltip && ( + + )}
diff --git a/app/react/portainer/settings/EdgeComputeView/SettingsOpenAMT/SettingsOpenAMT.tsx b/app/react/portainer/settings/EdgeComputeView/SettingsOpenAMT/SettingsOpenAMT.tsx index 11eb3986f..abff3bbab 100644 --- a/app/react/portainer/settings/EdgeComputeView/SettingsOpenAMT/SettingsOpenAMT.tsx +++ b/app/react/portainer/settings/EdgeComputeView/SettingsOpenAMT/SettingsOpenAMT.tsx @@ -214,6 +214,7 @@ export function SettingsOpenAMT({ settings, onSubmit }: Props) { size="medium" tooltip="Supported CAs are Comodo, DigiCert, Entrust and GoDaddy.
The certificate must contain the private key.
On AMT 15 based devices you need to use SHA2." errors={errors.certFileContent} + setTooltipHtmlMessage >