Skip to content

Commit

Permalink
fix: truncate text on filter to x icon fits the parent div (langflow-…
Browse files Browse the repository at this point in the history
…ai#3941)

🔧 (index.tsx): improve layout of sidebarFilterComponent to display type in a more readable way
  • Loading branch information
Cristhianzl authored and diogocabral committed Nov 26, 2024
1 parent d769f8d commit 376c4c2
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 376c4c2

Please sign in to comment.