File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
site/src/pages/WorkspacePage Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { workspaceQuota } from "api/queries/workspaceQuota";
7
7
import type * as TypesGen from "api/typesGenerated" ;
8
8
import { Avatar } from "components/Avatar/Avatar" ;
9
9
import { AvatarData } from "components/Avatar/AvatarData" ;
10
+ import { CopyButton } from "components/CopyButton/CopyButton" ;
10
11
import {
11
12
Topbar ,
12
13
TopbarAvatar ,
@@ -350,9 +351,20 @@ const WorkspaceBreadcrumb: FC<WorkspaceBreadcrumbProps> = ({
350
351
< PopoverTrigger >
351
352
< span css = { styles . breadcrumbSegment } >
352
353
< TopbarAvatar src = { templateIconUrl } fallback = { templateDisplayName } />
353
- < span css = { [ styles . breadcrumbText , { fontWeight : 500 } ] } >
354
- { workspaceName }
355
- </ span >
354
+ < div css = { { display : "flex" , alignItems : "center" , gap : "4px" } } >
355
+ < span css = { [ styles . breadcrumbText , { fontWeight : 500 } ] } >
356
+ { workspaceName }
357
+ </ span >
358
+ < CopyButton
359
+ text = { workspaceName }
360
+ tooltipTitle = "Copy workspace name"
361
+ buttonStyles = { {
362
+ padding : "4px" ,
363
+ minWidth : "24px" ,
364
+ height : "24px"
365
+ } }
366
+ />
367
+ </ div >
356
368
</ span >
357
369
</ PopoverTrigger >
358
370
You can’t perform that action at this time.
0 commit comments