Skip to content

Commit ff18a30

Browse files
committed
Tailored the fix to the File icon specifically instead of the span, with flex-shrink-0, to prevent future issues if the ui were to change around the icon.
1 parent 905c2e0 commit ff18a30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/pages/Layout/Layout_V2_Sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ const Sidebar: React.FC = () => {
9898
sidebarCollapsed ? "justify-center" : ""
9999
}`}
100100
>
101-
<File className="mr-2 h-4 w-4 text-gray-500"/>
101+
<File className="mr-2 h-4 w-4 text-gray-500 flex-shrink-0"/>
102102
{!sidebarCollapsed && (
103-
<span className="truncate w-44">
103+
<span className="truncate">
104104
{file.title || file.file_name.replace(/\.[^/.]+$/, "")}
105105
</span>
106106
)}

0 commit comments

Comments
 (0)