Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions app/ui/lib/Truncate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ export const Truncate = ({

// Only use the tooltip if the text is longer than maxLength
return (
<div className="flex items-center space-x-2">
// overflow-hidden required to make inner truncate work
<div className="flex items-center space-x-2 overflow-hidden">
<Tooltip content={text} delay={tooltipDelay}>
<div aria-label={text}>{truncate(text, maxLength, position)}</div>
<div aria-label={text} className="truncate">
{truncate(text, maxLength, position)}
</div>
</Tooltip>
{hasCopyButton && <CopyToClipboard text={text} />}
</div>
Expand Down
2 changes: 1 addition & 1 deletion mock-api/vpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const vpcs: Json<Vpc[]> = [vpc, vpc2]
export const defaultRouter: Json<VpcRouter> = {
id: 'fc59fb4d-baad-44a8-b152-9a3c27ae8aa1',
name: 'mock-system-router',
description: 'a fake router',
description: 'Routes are automatically added to this router as VPC subnets are created',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Match the real default description given to system routers

time_created: new Date(2024, 0, 1).toISOString(),
time_modified: new Date(2024, 0, 2).toISOString(),
vpc_id: vpc.id,
Expand Down