Skip to content

Commit

Permalink
fix(dashboards): fix text card overlapping edit button (closes #26285,
Browse files Browse the repository at this point in the history
…#26413) (#26828)

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
thmsobrmlr and github-actions[bot] authored Dec 11, 2024
1 parent 74d80fa commit 050513d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions frontend/src/lib/components/Cards/TextCard/TextCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ interface TextCardBodyProps extends Pick<React.HTMLAttributes<HTMLDivElement>, '

export function TextContent({ text, closeDetails, className }: TextCardBodyProps): JSX.Element {
return (
<div className={clsx('p-2 w-full overflow-auto', className)} onClick={() => closeDetails?.()}>
<LemonMarkdown>{text}</LemonMarkdown>
<div className={clsx('w-full', className)} onClick={() => closeDetails?.()}>
<LemonMarkdown className="overflow-auto">{text}</LemonMarkdown>
</div>
)
}
Expand Down Expand Up @@ -143,7 +143,7 @@ export function TextCardInternal(
)}

<div className="TextCard__body w-full">
<TextContent text={text.body} className="p-4" />
<TextContent text={text.body} className="p-4 pr-14" />
</div>

{showResizeHandles && (
Expand Down

0 comments on commit 050513d

Please sign in to comment.