fix: extend workspace name max character limit and truncate (#233)

This commit is contained in:
Henry
2025-10-28 21:14:01 +00:00
committed by GitHub
parent 690c1394b1
commit 81e9fe777c
21 changed files with 214 additions and 199 deletions

View File

@@ -54,7 +54,7 @@ export default function WorkspaceMenu({
>
<Menu.Button
className={twMerge(
"mb-1 flex h-[34px] flex-1 items-center rounded-md p-1.5 hover:bg-light-200 dark:hover:bg-dark-200",
"mb-1 flex h-[34px] min-w-0 flex-1 items-center rounded-md p-1.5 hover:bg-light-200 dark:hover:bg-dark-200",
isCollapsed &&
"md:mb-1.5 md:h-9 md:w-9 md:flex-none md:justify-center md:p-0",
)}
@@ -67,7 +67,7 @@ export default function WorkspaceMenu({
</span>
<span
className={twMerge(
"ml-2 truncate text-sm font-bold text-neutral-900 dark:text-dark-1000",
"ml-2 min-w-0 flex-1 truncate text-sm font-bold text-neutral-900 dark:text-dark-1000",
isCollapsed && "md:hidden",
)}
>