@@ -6,7 +6,6 @@ import { AlertBanner } from "components/AlertBanner/AlertBanner"
6
6
import { Stack } from "components/Stack/Stack"
7
7
import { FC } from "react"
8
8
import * as TypesGen from "../../api/typesGenerated"
9
- import { MONOSPACE_FONT_FAMILY } from "../../theme/constants"
10
9
11
10
export const Language = {
12
11
of : "of" ,
@@ -27,7 +26,7 @@ export const WorkspaceQuota: FC<WorkspaceQuotaProps> = ({ quota, error }) => {
27
26
return (
28
27
< Box >
29
28
< Stack spacing = { 1 } className = { styles . stack } >
30
- < span className = { styles . title } > Workspace Quota</ span >
29
+ < span className = { styles . title } > Usage Quota</ span >
31
30
< AlertBanner severity = "error" error = { error } />
32
31
</ Stack >
33
32
</ Box >
@@ -39,7 +38,7 @@ export const WorkspaceQuota: FC<WorkspaceQuotaProps> = ({ quota, error }) => {
39
38
return (
40
39
< Box >
41
40
< Stack spacing = { 1 } className = { styles . stack } >
42
- < span className = { styles . title } > Workspace Quota </ span >
41
+ < span className = { styles . title } > Usage quota </ span >
43
42
< LinearProgress color = "primary" />
44
43
< div className = { styles . label } >
45
44
< Skeleton className = { styles . skeleton } />
@@ -64,8 +63,23 @@ export const WorkspaceQuota: FC<WorkspaceQuotaProps> = ({ quota, error }) => {
64
63
65
64
return (
66
65
< Box >
67
- < Stack spacing = { 1 } className = { styles . stack } >
68
- < span className = { styles . title } > Workspace Quota</ span >
66
+ < Stack spacing = { 1.5 } className = { styles . stack } >
67
+ < Stack direction = "row" justifyContent = "space-between" >
68
+ < span className = { styles . title } > Usage Quota</ span >
69
+ < div className = { styles . label } >
70
+ < span className = { styles . labelHighlight } >
71
+ { quota . user_workspace_count }
72
+ </ span > { " " }
73
+ { Language . of } { " " }
74
+ < span className = { styles . labelHighlight } >
75
+ { quota . user_workspace_limit }
76
+ </ span > { " " }
77
+ { quota . user_workspace_limit === 1
78
+ ? Language . workspace
79
+ : Language . workspaces }
80
+ { " used" }
81
+ </ div >
82
+ </ Stack >
69
83
< LinearProgress
70
84
className = {
71
85
quota . user_workspace_count >= quota . user_workspace_limit
@@ -75,14 +89,6 @@ export const WorkspaceQuota: FC<WorkspaceQuotaProps> = ({ quota, error }) => {
75
89
value = { value }
76
90
variant = "determinate"
77
91
/>
78
- < div className = { styles . label } >
79
- { quota . user_workspace_count } { Language . of } { " " }
80
- { quota . user_workspace_limit } { " " }
81
- { quota . user_workspace_limit === 1
82
- ? Language . workspace
83
- : Language . workspaces }
84
- { " used" }
85
- </ div >
86
92
</ Stack >
87
93
</ Box >
88
94
)
@@ -101,18 +107,16 @@ const useStyles = makeStyles((theme) => ({
101
107
} ,
102
108
} ,
103
109
title : {
104
- fontFamily : MONOSPACE_FONT_FAMILY ,
105
- fontSize : 21 ,
106
- paddingBottom : "8px" ,
110
+ fontSize : 16 ,
107
111
} ,
108
112
label : {
109
- fontFamily : MONOSPACE_FONT_FAMILY ,
110
- fontSize : 12 ,
111
- textTransform : "uppercase" ,
113
+ fontSize : 14 ,
112
114
display : "block" ,
113
- fontWeight : 600 ,
114
115
color : theme . palette . text . secondary ,
115
116
} ,
117
+ labelHighlight : {
118
+ color : theme . palette . text . primary ,
119
+ } ,
116
120
skeleton : {
117
121
minWidth : "150px" ,
118
122
} ,
0 commit comments