@@ -132,7 +132,8 @@ export const WorkspaceTopbar: FC<WorkspaceProps> = ({
132
132
rowGap : 8 ,
133
133
flexWrap : "wrap" ,
134
134
// 12px - It is needed to keep vertical spacing when the content is wrapped
135
- padding : "12px 0 12px 16px" ,
135
+ padding : "12px" ,
136
+ marginRight : "auto" ,
136
137
} }
137
138
>
138
139
< TopbarData >
@@ -144,7 +145,9 @@ export const WorkspaceTopbar: FC<WorkspaceProps> = ({
144
145
< Tooltip title = "Owner" >
145
146
< span > { workspace . owner_name } </ span >
146
147
</ Tooltip >
148
+
147
149
< TopbarDivider />
150
+
148
151
< Popover mode = "hover" >
149
152
< PopoverTrigger >
150
153
< span
@@ -200,16 +203,6 @@ export const WorkspaceTopbar: FC<WorkspaceProps> = ({
200
203
</ Popover >
201
204
</ TopbarData >
202
205
203
- { ! isImmutable && (
204
- < WorkspaceScheduleControls
205
- workspace = { workspace }
206
- template = { template }
207
- canUpdateSchedule = {
208
- canUpdateWorkspace && template . allow_user_autostop
209
- }
210
- />
211
- ) }
212
-
213
206
{ shouldDisplayDormantData && (
214
207
< TopbarData >
215
208
< TopbarIcon >
@@ -221,7 +214,13 @@ export const WorkspaceTopbar: FC<WorkspaceProps> = ({
221
214
title = "Schedule settings"
222
215
css = { { color : "inherit" } }
223
216
>
224
- Deletion on { new Date ( workspace . deleting_at ! ) . toLocaleString ( ) }
217
+ { workspace . deleting_at ? (
218
+ < >
219
+ Deletion on { new Date ( workspace . deleting_at ) . toLocaleString ( ) }
220
+ </ >
221
+ ) : (
222
+ "Deleting soon"
223
+ ) }
225
224
</ Link >
226
225
</ TopbarData >
227
226
) }
@@ -244,49 +243,53 @@ export const WorkspaceTopbar: FC<WorkspaceProps> = ({
244
243
) }
245
244
</ div >
246
245
247
- < div
248
- css = { {
249
- marginLeft : "auto" ,
250
- display : "flex" ,
251
- alignItems : "center" ,
252
- gap : 12 ,
253
- } }
254
- >
255
- { ! isImmutable && (
256
- < >
257
- < WorkspaceNotifications
258
- workspace = { workspace }
259
- template = { template }
260
- latestVersion = { latestVersion }
261
- permissions = { permissions }
262
- onRestartWorkspace = { handleRestart }
263
- onUpdateWorkspace = { handleUpdate }
264
- onActivateWorkspace = { handleDormantActivate }
265
- />
266
- < WorkspaceStatusBadge workspace = { workspace } />
267
- < WorkspaceActions
268
- workspace = { workspace }
269
- handleStart = { handleStart }
270
- handleStop = { handleStop }
271
- handleRestart = { handleRestart }
272
- handleDelete = { handleDelete }
273
- handleUpdate = { handleUpdate }
274
- handleCancel = { handleCancel }
275
- handleSettings = { handleSettings }
276
- handleRetry = { handleRetry }
277
- handleDebug = { handleDebug }
278
- handleChangeVersion = { handleChangeVersion }
279
- handleDormantActivate = { handleDormantActivate }
280
- handleToggleFavorite = { handleToggleFavorite }
281
- canDebug = { canDebugMode }
282
- canChangeVersions = { canChangeVersions }
283
- isUpdating = { isUpdating }
284
- isRestarting = { isRestarting }
285
- isOwner = { isOwner }
286
- />
287
- </ >
288
- ) }
289
- </ div >
246
+ { ! isImmutable && (
247
+ < div
248
+ css = { {
249
+ display : "flex" ,
250
+ alignItems : "center" ,
251
+ gap : 8 ,
252
+ } }
253
+ >
254
+ < WorkspaceScheduleControls
255
+ workspace = { workspace }
256
+ template = { template }
257
+ canUpdateSchedule = {
258
+ canUpdateWorkspace && template . allow_user_autostop
259
+ }
260
+ />
261
+ < WorkspaceNotifications
262
+ workspace = { workspace }
263
+ template = { template }
264
+ latestVersion = { latestVersion }
265
+ permissions = { permissions }
266
+ onRestartWorkspace = { handleRestart }
267
+ onUpdateWorkspace = { handleUpdate }
268
+ onActivateWorkspace = { handleDormantActivate }
269
+ />
270
+ < WorkspaceStatusBadge workspace = { workspace } />
271
+ < WorkspaceActions
272
+ workspace = { workspace }
273
+ handleStart = { handleStart }
274
+ handleStop = { handleStop }
275
+ handleRestart = { handleRestart }
276
+ handleDelete = { handleDelete }
277
+ handleUpdate = { handleUpdate }
278
+ handleCancel = { handleCancel }
279
+ handleSettings = { handleSettings }
280
+ handleRetry = { handleRetry }
281
+ handleDebug = { handleDebug }
282
+ handleChangeVersion = { handleChangeVersion }
283
+ handleDormantActivate = { handleDormantActivate }
284
+ handleToggleFavorite = { handleToggleFavorite }
285
+ canDebug = { canDebugMode }
286
+ canChangeVersions = { canChangeVersions }
287
+ isUpdating = { isUpdating }
288
+ isRestarting = { isRestarting }
289
+ isOwner = { isOwner }
290
+ />
291
+ </ div >
292
+ ) }
290
293
</ Topbar >
291
294
) ;
292
295
} ;
0 commit comments