Skip to content

Commit

Permalink
fix: the horizontal scroll bar appears when the task name is long (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmouk authored Jun 19, 2024
1 parent 3a35bb4 commit b8d695f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/app/[locale]/_components/FolderTreeItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ export const FolderTreeItem = ({
<div className="flex flex-1 justify-between" ref={setNodeRef}>
<button
type="button"
className="block w-full px-4 text-sm"
className="block flex-1 min-w-0 px-4 text-sm"
onClick={toggleIsOpen}
>
<TreePath depth={depth}>
<span title={name} className="flex w-full min-w-0 items-center">
<span title={name} className="flex min-w-0 items-center">
<TreeItemArrowIcon isOpen={isOpen} />
<span style={{ color }} className="mr-2">
<PiFolder size={20} />
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/app/[locale]/_components/TaskTreeItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const TaskTreeItem = ({
<div className="group flex hover:bg-gray-200">
<button
type="button"
className="block w-full px-4 text-sm"
className="block w-full min-w-0 px-4 text-sm"
onClick={handleClick}
>
<TreePath depth={depth}>
Expand Down

0 comments on commit b8d695f

Please sign in to comment.