fix: truncate text on filter to x icon fits the parent div (#3941)

🔧 (index.tsx): improve layout of sidebarFilterComponent to display type in a more readable way
This commit is contained in:
Cristhian Zanforlin Lousa 2024-09-26 17:52:38 -03:00 committed by GitHub
commit 232b0d7d00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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