mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-17 18:18:11 +00:00
Sidebar bug fix (#291)
truncate workspace name to prevent gear icon from being shown
This commit is contained in:
parent
a8ec0d9584
commit
5f4d42edb8
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ import ManageWorkspace, {
|
|||
import paths from "../../../utils/paths";
|
||||
import { useParams } from "react-router-dom";
|
||||
import { GearSix, SquaresFour } from "@phosphor-icons/react";
|
||||
import truncate from "truncate";
|
||||
|
||||
export default function ActiveWorkspaces() {
|
||||
const { slug } = useParams();
|
||||
|
@ -73,7 +74,7 @@ export default function ActiveWorkspaces() {
|
|||
isActive ? "" : "text-opacity-80"
|
||||
}`}
|
||||
>
|
||||
{workspace.name}
|
||||
{isActive ? truncate(workspace.name, 17) : truncate(workspace.name, 20)}
|
||||
</p>
|
||||
</div>
|
||||
<button
|
||||
|
|
Loading…
Add table
Reference in a new issue