mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(UI): tooltip html message support and width fix [EE-3445] (#8165)
Co-authored-by: testa113 <testa113>
This commit is contained in:
parent
5cbf52377d
commit
a1528475ba
3 changed files with 8 additions and 2 deletions
|
@ -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<Props>) {
|
||||
return (
|
||||
<div
|
||||
|
@ -41,7 +43,9 @@ export function FormControl({
|
|||
|
||||
{required && <span className="text-danger">*</span>}
|
||||
|
||||
{tooltip && <Tooltip message={tooltip} />}
|
||||
{tooltip && (
|
||||
<Tooltip message={tooltip} setHtmlMessage={setTooltipHtmlMessage} />
|
||||
)}
|
||||
</label>
|
||||
|
||||
<div className={sizeClassChildren(size)}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue