@@ -11,7 +11,6 @@ import {
11
11
} from "components/FullPageLayout/Topbar" ;
12
12
import Tooltip from "@mui/material/Tooltip" ;
13
13
import ArrowBackOutlined from "@mui/icons-material/ArrowBackOutlined" ;
14
- import PersonOutlineOutlined from "@mui/icons-material/PersonOutlineOutlined" ;
15
14
import { WorkspaceOutdatedTooltipContent } from "components/WorkspaceOutdatedTooltip/WorkspaceOutdatedTooltip" ;
16
15
import { Popover , PopoverTrigger } from "components/Popover/Popover" ;
17
16
import ScheduleOutlined from "@mui/icons-material/ScheduleOutlined" ;
@@ -30,6 +29,7 @@ import Link from "@mui/material/Link";
30
29
import { useDashboard } from "components/Dashboard/DashboardProvider" ;
31
30
import { displayDormantDeletion } from "utils/dormant" ;
32
31
import DeleteOutline from "@mui/icons-material/DeleteOutline" ;
32
+ import PersonOutline from "@mui/icons-material/PersonOutline" ;
33
33
34
34
export type WorkspaceError =
35
35
| "getBuildsError"
@@ -120,16 +120,26 @@ export const WorkspaceTopbar = (props: WorkspaceProps) => {
120
120
} }
121
121
>
122
122
< TopbarData >
123
- < TopbarAvatar src = { workspace . template_icon } />
124
- < span css = { { fontWeight : 500 } } > { workspace . name } </ span >
123
+ < TopbarIcon >
124
+ < PersonOutline />
125
+ </ TopbarIcon >
126
+ < Tooltip title = "Owner" >
127
+ < span > { workspace . owner_name } </ span >
128
+ </ Tooltip >
125
129
< TopbarDivider />
126
- < Link
127
- component = { RouterLink }
128
- to = { `/templates/${ workspace . template_name } ` }
129
- css = { { color : "inherit" } }
130
+ < Tooltip
131
+ title = { workspace . template_display_name ?? workspace . template_name }
130
132
>
131
- { workspace . template_display_name ?? workspace . template_name }
132
- </ Link >
133
+ < Link
134
+ component = { RouterLink }
135
+ to = { `/templates/${ workspace . template_name } ` }
136
+ css = { { color : "inherit" } }
137
+ >
138
+ < TopbarAvatar src = { workspace . template_icon } />
139
+ </ Link >
140
+ </ Tooltip >
141
+
142
+ < span css = { { fontWeight : 500 } } > { workspace . name } </ span >
133
143
134
144
{ workspace . outdated ? (
135
145
< Popover mode = "hover" >
@@ -165,15 +175,6 @@ export const WorkspaceTopbar = (props: WorkspaceProps) => {
165
175
) }
166
176
</ TopbarData >
167
177
168
- < TopbarData >
169
- < Tooltip title = "Owner" >
170
- < TopbarIcon >
171
- < PersonOutlineOutlined aria-label = "Owner" />
172
- </ TopbarIcon >
173
- </ Tooltip >
174
- < span > { workspace . owner_name } </ span >
175
- </ TopbarData >
176
-
177
178
{ shouldDisplayDormantData && (
178
179
< TopbarData >
179
180
< TopbarIcon >
0 commit comments