From edb680b4f889e752bb3a9a2581ace4039a724d57 Mon Sep 17 00:00:00 2001 From: "Laurie T. Malau" Date: Mon, 23 Aug 2021 11:14:32 +0000 Subject: [PATCH] Add tooltip to project names Fixes #5122 --- components/dashboard/src/components/Tooltip.tsx | 3 ++- components/dashboard/src/workspaces/WorkspaceEntry.tsx | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/dashboard/src/components/Tooltip.tsx b/components/dashboard/src/components/Tooltip.tsx index 52382c80a9a857..eb01d359a5a360 100644 --- a/components/dashboard/src/components/Tooltip.tsx +++ b/components/dashboard/src/components/Tooltip.tsx @@ -9,6 +9,7 @@ import { useState } from 'react'; export interface TooltipProps { children: React.ReactChild[] | React.ReactChild; content: string; + allowWrap?: boolean; } function Tooltip(props: TooltipProps) { @@ -20,7 +21,7 @@ function Tooltip(props: TooltipProps) { {props.children} {expanded ? -
+
{props.content}
: diff --git a/components/dashboard/src/workspaces/WorkspaceEntry.tsx b/components/dashboard/src/workspaces/WorkspaceEntry.tsx index 68cfb537b4ce2c..ef5e02cf5faecc 100644 --- a/components/dashboard/src/workspaces/WorkspaceEntry.tsx +++ b/components/dashboard/src/workspaces/WorkspaceEntry.tsx @@ -91,7 +91,9 @@ export function WorkspaceEntry({ desc, model, isAdmin, stopWorkspace }: Props) {
{ws.id}
-
{project || 'Unknown'}
+ +
{project || 'Unknown'}
+
{ws.description}