Skip to content

Commit

Permalink
fix: truncate text on filter to x icon fits the parent div (#3941)
Browse files Browse the repository at this point in the history
🔧 (index.tsx): improve layout of sidebarFilterComponent to display type in a more readable way
  • Loading branch information
Cristhianzl authored Sep 26, 2024
1 parent 11d0f44 commit 232b0d7
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ export function SidebarFilterComponent({
name="ListFilter"
className="h-4 w-4 shrink-0 stroke-2"
/>
<div className="flex-1 overflow-hidden truncate">
{isInput ? "Input" : "Output"}: {type}
<div className="flex flex-1">
{isInput ? "Input" : "Output"}:{" "}
<div className="w-[5.7rem] flex-1 overflow-hidden truncate pl-1">
{type}
</div>
</div>
</div>
<ShadTooltip
Expand Down

0 comments on commit 232b0d7

Please sign in to comment.