update share modal style (#2361)

Refactor component to use a div instead of a span for better styling and layout

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
anovazzi1 2024-06-26 19:47:49 -03:00 committed by Gabriel Luiz Freitas Almeida
commit 700f09e58d
2 changed files with 4 additions and 4 deletions

View file

@ -107,14 +107,14 @@ export const EditFlowSettings: React.FC<InputProps> = ({
}}
/>
) : (
<span
<div
className={cn(
"font-normal text-muted-foreground word-break-break-word",
"max-h-[250px] overflow-auto font-normal text-muted-foreground word-break-break-word",
description === "" ? "font-light italic" : "",
)}
>
{description === "" ? "No description" : description}
</span>
</div>
)}
</Label>
{setEndpointName && (

View file

@ -128,7 +128,7 @@ export default function ShareModal({
successShare,
(err) => {
setErrorData({
title: "Error sharing " + is_component ? "component" : "flow",
title: "Error sharing " + (is_component ? "component" : "flow"),
list: [err["response"]["data"]["detail"]],
});
},