Skip to content
Snippets Groups Projects
Unverified Commit 5f4d42ed authored by Sean Hatfield's avatar Sean Hatfield Committed by GitHub
Browse files

Sidebar bug fix (#291)

truncate workspace name to prevent gear icon from being shown
parent a8ec0d95
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ import ManageWorkspace, { ...@@ -8,6 +8,7 @@ import ManageWorkspace, {
import paths from "../../../utils/paths"; import paths from "../../../utils/paths";
import { useParams } from "react-router-dom"; import { useParams } from "react-router-dom";
import { GearSix, SquaresFour } from "@phosphor-icons/react"; import { GearSix, SquaresFour } from "@phosphor-icons/react";
import truncate from "truncate";
export default function ActiveWorkspaces() { export default function ActiveWorkspaces() {
const { slug } = useParams(); const { slug } = useParams();
...@@ -73,7 +74,7 @@ export default function ActiveWorkspaces() { ...@@ -73,7 +74,7 @@ export default function ActiveWorkspaces() {
isActive ? "" : "text-opacity-80" isActive ? "" : "text-opacity-80"
}`} }`}
> >
{workspace.name} {isActive ? truncate(workspace.name, 17) : truncate(workspace.name, 20)}
</p> </p>
</div> </div>
<button <button
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment