@@ -46,18 +46,18 @@ const styles = {
46
46
align-items : center;
47
47
` ,
48
48
category : ( theme ) => ( {
49
- marginRight : theme . spacing ( 2 ) ,
49
+ marginRight : 16 ,
50
50
color : theme . palette . text . primary ,
51
51
} ) ,
52
52
values : ( theme ) => ( {
53
53
display : "flex" ,
54
- gap : theme . spacing ( 1 ) ,
54
+ gap : 8 ,
55
55
color : theme . palette . text . secondary ,
56
56
} ) ,
57
- value : ( theme ) => css `
57
+ value : css `
58
58
display : flex;
59
59
align-items : center;
60
- gap : ${ theme . spacing ( 0.5 ) } ;
60
+ gap : 4 px ;
61
61
62
62
& svg {
63
63
width : 12px ;
@@ -129,7 +129,7 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = (props) => {
129
129
align-items : center;
130
130
justify-content : center;
131
131
background-color : ${ unhealthy ? colors . red [ 10 ] : undefined } ;
132
- padding : ${ theme . spacing ( 0 , 1.5 ) } ;
132
+ padding : 0 12 px ;
133
133
height : ${ bannerHeight } px;
134
134
color : # fff ;
135
135
@@ -142,9 +142,9 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = (props) => {
142
142
const statusSummaryStyle = className `
143
143
${ theme . typography . body2 as CSSObject }
144
144
145
- margin : ${ theme . spacing ( 0 , 0 , 0.5 , 1.5 ) } ;
146
- width : ${ theme . spacing ( 50 ) } ;
147
- padding : ${ theme . spacing ( 2 ) } ;
145
+ margin : 0 0 4 px 12 px ;
146
+ width : 400 px ;
147
+ padding : 16 px ;
148
148
color : ${ theme . palette . text . primary } ;
149
149
background-color : ${ theme . palette . background . paper } ;
150
150
border : 1px solid ${ theme . palette . divider } ;
@@ -158,13 +158,13 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = (props) => {
158
158
height : bannerHeight ,
159
159
bottom : 0 ,
160
160
zIndex : 1 ,
161
- paddingRight : theme . spacing ( 2 ) ,
161
+ paddingRight : 16 ,
162
162
backgroundColor : theme . palette . background . paper ,
163
163
display : "flex" ,
164
164
alignItems : "center" ,
165
165
fontFamily : MONOSPACE_FONT_FAMILY ,
166
166
fontSize : 12 ,
167
- gap : theme . spacing ( 4 ) ,
167
+ gap : 32 ,
168
168
borderTop : `1px solid ${ theme . palette . divider } ` ,
169
169
overflowX : "auto" ,
170
170
whiteSpace : "nowrap" ,
@@ -204,7 +204,7 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = (props) => {
204
204
)
205
205
}
206
206
open = { process . env . STORYBOOK === "true" ? true : undefined }
207
- css = { { marginRight : theme . spacing ( - 2 ) } }
207
+ css = { { marginRight : - 16 } }
208
208
>
209
209
{ unhealthy ? (
210
210
< Link component = { RouterLink } to = "/health" css = { statusBadgeStyle } >
@@ -323,7 +323,7 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = (props) => {
323
323
marginLeft : "auto" ,
324
324
display : "flex" ,
325
325
alignItems : "center" ,
326
- gap : theme . spacing ( 2 ) ,
326
+ gap : 16 ,
327
327
} }
328
328
>
329
329
< Tooltip title = "The last time stats were aggregated. Workspaces report statistics periodically, so it may take a bit for these to update!" >
@@ -335,23 +335,24 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = (props) => {
335
335
336
336
< Tooltip title = "A countdown until stats are fetched again. Click to refresh!" >
337
337
< Button
338
- css = { css `
339
- ${ styles . value ( theme ) }
338
+ css = { [
339
+ styles . value ,
340
+ css `
341
+ margin : 0 ;
342
+ padding : 0 8px ;
343
+ height : unset;
344
+ min-height : unset;
345
+ font-size : unset;
346
+ color : unset;
347
+ border : 0 ;
348
+ min-width : unset;
349
+ font-family : inherit;
340
350
341
- margin : 0 ;
342
- padding : 0 8px ;
343
- height : unset;
344
- min-height : unset;
345
- font-size : unset;
346
- color : unset;
347
- border : 0 ;
348
- min-width : unset;
349
- font-family : inherit;
350
-
351
- & svg {
352
- margin-right : ${ theme . spacing ( 0.5 ) } ;
353
- }
354
- ` }
351
+ & svg {
352
+ margin-right : 4px ;
353
+ }
354
+ ` ,
355
+ ] }
355
356
onClick = { ( ) => {
356
357
if ( fetchStats ) {
357
358
fetchStats ( ) ;
0 commit comments