Skip to content

Commit

Permalink
chore: set a specific width and height (flojoy-ai#1167)
Browse files Browse the repository at this point in the history
* chore: set a specific width and height

* chore: formatting

* chore: fix Eslint
  • Loading branch information
LatentDream authored Apr 17, 2024
1 parent 04d0e7a commit 8d389cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const mapStatusToDisplay: { [k in StatusType] } = {
FAIL
</Badge>
</HoverCardTrigger>
<HoverCardContent className="w-256 h-max-256 z-20 mt-2 overscroll-y-auto rounded-lg border bg-card px-3 py-2 text-card-foreground shadow-sm ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2">
<HoverCardContent className="z-20 mt-2 h-[306px] w-[600px] overscroll-y-auto rounded-lg border bg-card px-3 py-2 text-card-foreground shadow-sm ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2">
<h2 className="text-muted-foreground">Error Message:</h2>
{renderErrorMessage(status)}
</HoverCardContent>
Expand All @@ -63,7 +63,7 @@ export const mapStatusToDisplay: { [k in StatusType] } = {
function renderErrorMessage(text: string): JSX.Element {
const lines = text.split("\n");
return (
<div className="mt-2 whitespace-pre rounded-md bg-secondary p-2">
<div className="mt-2 h-[256px] overflow-scroll whitespace-pre rounded-md bg-secondary p-2">
{lines.map((line, index) => (
<div key={index}>{line}</div>
))}
Expand Down

0 comments on commit 8d389cb

Please sign in to comment.