@@ -9,6 +9,7 @@ import { Link } from "react-router-dom"
9
9
import * as Types from "../../api/types"
10
10
import { WorkspaceStatus } from "../../pages/WorkspacePage/WorkspacePage"
11
11
import { TitleIconSize } from "../../theme/constants"
12
+ import { combineClasses } from "../../util/combineClasses"
12
13
import { Stack } from "../Stack/Stack"
13
14
import { WorkspaceSection } from "../WorkspaceSection/WorkspaceSection"
14
15
@@ -55,20 +56,27 @@ export const WorkspaceStatusBar: React.FC<WorkspaceStatusBarProps> = ({
55
56
< WorkspaceSection >
56
57
< Stack spacing = { 1 } >
57
58
58
- { organization && template &&
59
- < Typography variant = "body2" color = "textSecondary" >
60
- Back to{ " " }
61
- < Link className = { styles . link } to = { templateLink } >
62
- { template . name }
63
- </ Link >
64
- </ Typography >
65
- }
59
+ < div className = { combineClasses ( [ styles . horizontal , styles . reverse ] ) } >
60
+ < div className = { styles . horizontal } >
61
+ < Link className = { styles . link } to = { `workspaces/${ workspace . id } /edit` } >
62
+ { Language . settings }
63
+ </ Link >
64
+ </ div >
65
+
66
+ { organization && template &&
67
+ < Typography variant = "body2" color = "textSecondary" >
68
+ Back to{ " " }
69
+ < Link className = { styles . link } to = { templateLink } >
70
+ { template . name }
71
+ </ Link >
72
+ </ Typography >
73
+ }
74
+
75
+ </ div >
66
76
67
77
< div className = { styles . horizontal } >
68
78
< div className = { styles . horizontal } >
69
- < div className = { styles . vertical } >
70
- < Typography variant = "h4" > { workspace . name } </ Typography >
71
- </ div >
79
+ < Typography variant = "h4" > { workspace . name } </ Typography >
72
80
< Box className = { styles . statusChip } >
73
81
{ workspaceStatus === "started" && Language . started }
74
82
{ workspaceStatus === "starting" && Language . starting }
@@ -101,12 +109,6 @@ export const WorkspaceStatusBar: React.FC<WorkspaceStatusBarProps> = ({
101
109
</ Button >
102
110
) }
103
111
104
- < Divider orientation = "vertical" flexItem />
105
-
106
- < Link className = { styles . link } to = { `workspaces/${ workspace . id } /edit` } >
107
- { Language . settings }
108
- </ Link >
109
-
110
112
</ div >
111
113
</ div >
112
114
</ Stack >
@@ -126,11 +128,13 @@ const useStyles = makeStyles((theme) => {
126
128
} ,
127
129
horizontal : {
128
130
display : "flex" ,
129
- flexDirection : "row" ,
130
131
justifyContent : "space-between" ,
131
132
alignItems : "center" ,
132
133
gap : theme . spacing ( 2 ) ,
133
134
} ,
135
+ reverse : {
136
+ flexDirection : 'row-reverse'
137
+ } ,
134
138
statusChip : {
135
139
border : `solid 1px ${ theme . palette . text . hint } ` ,
136
140
borderRadius : theme . shape . borderRadius ,
0 commit comments