style: Adjust formatting for improved readability in HeaderAlert and Modal components

This commit is contained in:
Nawaz Dhandala
2025-07-14 19:11:56 +01:00
parent 46a0e54771
commit d6d61a61fd
2 changed files with 7 additions and 3 deletions

View File

@@ -87,9 +87,11 @@ const HeaderAlert: (props: ComponentProps) => ReactElement = (
{props.title}
</p>
{props.suffix && (
<span className={`ml-1 ${textColor} text-sm font-semibold hidden md:block`}>
<span
className={`ml-1 ${textColor} text-sm font-semibold hidden md:block`}
>
{props.suffix}
</span>
</span>
)}
</div>
</div>

View File

@@ -126,7 +126,9 @@ const Modal: FunctionComponent<ComponentProps> = (
)}
</div>
{props.rightElement && (
<div data-testid="right-element" className="mt-4 md:mt-0">{props.rightElement}</div>
<div data-testid="right-element" className="mt-4 md:mt-0">
{props.rightElement}
</div>
)}
</div>
<div className="mt-2">