Skip to content

Commit

Permalink
fix: abbreviate currentIdentifierButton with ... if overflowing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Nov 18, 2024
1 parent a5fcd44 commit 579f2c9
Showing 1 changed file with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,17 @@ export function DefaultCurrentIdentifierButton() {
])

return (
<div>
<a
className="cursor-pointer py-[5px] px-3 rounded-full border border-button-identifier-border-default bg-button-identifier-bg-default hover:border-button-identifier-border-hover hover:bg-button-identifier-bg-hover transition-colors inline-flex gap-1 items-center"
{...attributes}
href={initFlowUrl}
title={`Adjust ${nodeBackButton?.attributes.value}`}
>
<IconArrowLeft size={16} className="text-button-identifier-fg-subtle" />
<span className="text-sm font-medium text-button-identifier-fg-default text-ellipsis overflow-hidden text-nowrap">
{nodeBackButton?.attributes.value}
</span>
</a>
</div>
<a
className="cursor-pointer py-[5px] px-3 rounded-full border border-button-identifier-border-default bg-button-identifier-bg-default hover:border-button-identifier-border-hover hover:bg-button-identifier-bg-hover transition-colors inline-flex gap-1 items-center"
{...attributes}
href={initFlowUrl}
title={`Adjust ${nodeBackButton?.attributes.value}`}
>
<IconArrowLeft size={16} className="text-button-identifier-fg-subtle" />
<span className="text-sm font-medium text-button-identifier-fg-default text-ellipsis overflow-hidden text-nowrap">
{nodeBackButton?.attributes.value}
</span>
</a>
)
}

Expand Down

0 comments on commit 579f2c9

Please sign in to comment.