@@ -85,8 +85,8 @@ const EnvironmentDetail: React.FC = () => {
85
85
86
86
if ( isLoading ) {
87
87
return (
88
- < div style = { { display : 'flex' , justifyContent : 'center' , padding : '50px ' } } >
89
- < Spin size = "large" tip = "Loading environment..." style = { { display : 'block' , textAlign : 'center' } } />
88
+ < div style = { { display : 'flex' , justifyContent : 'center' , padding : '60px 0 ' } } >
89
+ < Spin size = "large" />
90
90
</ div >
91
91
) ;
92
92
}
@@ -151,19 +151,21 @@ const EnvironmentDetail: React.FC = () => {
151
151
onEditClick = { handleEditClick }
152
152
/>
153
153
154
-
155
-
156
- { /* Basic Environment Information Card - improved responsiveness */ }
154
+ { /* Basic Environment Information Card */ }
157
155
< Card
158
156
title = "Environment Overview"
159
- style = { { marginBottom : "24px" , borderRadius : '8px' , boxShadow : '0 2px 8px rgba(0,0,0,0.05)' } }
157
+ style = { {
158
+ marginBottom : "24px" ,
159
+ borderRadius : '4px' ,
160
+ border : '1px solid #f0f0f0'
161
+ } }
160
162
className = "environment-overview-card"
161
163
>
162
164
< Descriptions
163
165
bordered
164
- layout = "vertical" // Change to vertical layout on smaller screens
166
+ layout = "vertical"
165
167
column = { { xxl : 4 , xl : 3 , lg : 3 , md : 2 , sm : 1 , xs : 1 } }
166
- size = "small" // Use smaller size on mobile
168
+ size = "small"
167
169
>
168
170
< Descriptions . Item label = "Domain" >
169
171
{ environment . environmentFrontendUrl ? (
@@ -181,7 +183,7 @@ const EnvironmentDetail: React.FC = () => {
181
183
< Descriptions . Item label = "Environment Type" >
182
184
< Tag
183
185
color = { getEnvironmentTagColor ( environment . environmentType ) }
184
- style = { { borderRadius : '12px ' } }
186
+ style = { { borderRadius : '4px ' } }
185
187
>
186
188
{ environment . environmentType }
187
189
</ Tag >
@@ -190,23 +192,23 @@ const EnvironmentDetail: React.FC = () => {
190
192
{ ( ( ) => {
191
193
switch ( environment . licenseStatus ) {
192
194
case 'checking' :
193
- return < Tag icon = { < SyncOutlined spin /> } color = "blue" style = { { borderRadius : '12px ' } } > Checking...</ Tag > ;
195
+ return < Tag icon = { < SyncOutlined spin /> } color = "blue" style = { { borderRadius : '4px ' } } > Checking...</ Tag > ;
194
196
case 'licensed' :
195
- return < Tag icon = { < CheckCircleOutlined /> } color = "green" style = { { borderRadius : '12px ' } } > Licensed</ Tag > ;
197
+ return < Tag icon = { < CheckCircleOutlined /> } color = "green" style = { { borderRadius : '4px ' } } > Licensed</ Tag > ;
196
198
case 'unlicensed' :
197
- return < Tag icon = { < CloseCircleOutlined /> } color = "red" style = { { borderRadius : '12px ' } } > Not Licensed</ Tag > ;
199
+ return < Tag icon = { < CloseCircleOutlined /> } color = "red" style = { { borderRadius : '4px ' } } > Not Licensed</ Tag > ;
198
200
case 'error' :
199
- return < Tag icon = { < ExclamationCircleOutlined /> } color = "orange" style = { { borderRadius : '12px ' } } > License Error</ Tag > ;
201
+ return < Tag icon = { < ExclamationCircleOutlined /> } color = "orange" style = { { borderRadius : '4px ' } } > License Error</ Tag > ;
200
202
default :
201
- return < Tag color = "default" style = { { borderRadius : '12px ' } } > Unknown</ Tag > ;
203
+ return < Tag color = "default" style = { { borderRadius : '4px ' } } > Unknown</ Tag > ;
202
204
}
203
205
} ) ( ) }
204
206
</ Descriptions . Item >
205
207
< Descriptions . Item label = "API Key Status" >
206
208
{ environment . environmentApikey ? (
207
- < Tag color = "green" style = { { borderRadius : '12px ' } } > Configured</ Tag >
209
+ < Tag color = "green" style = { { borderRadius : '4px ' } } > Configured</ Tag >
208
210
) : (
209
- < Tag color = "red" style = { { borderRadius : '12px ' } } > Not Configured</ Tag >
211
+ < Tag color = "red" style = { { borderRadius : '4px ' } } > Not Configured</ Tag >
210
212
) }
211
213
</ Descriptions . Item >
212
214
< Descriptions . Item label = "Master Environment" >
@@ -217,13 +219,14 @@ const EnvironmentDetail: React.FC = () => {
217
219
218
220
{ /* Modern Breadcrumbs navigation */ }
219
221
< ModernBreadcrumbs items = { breadcrumbItems } />
222
+
220
223
{ /* Tabs for Workspaces and User Groups */ }
221
224
< Tabs
222
225
defaultActiveKey = "workspaces"
223
226
activeKey = { activeTab }
224
227
onChange = { setActiveTab }
225
228
className = "modern-tabs"
226
- type = "card "
229
+ type = "line "
227
230
>
228
231
< TabPane
229
232
tab = {
@@ -233,7 +236,6 @@ const EnvironmentDetail: React.FC = () => {
233
236
}
234
237
key = "workspaces"
235
238
>
236
- { /* Using our new standalone WorkspacesTab component */ }
237
239
< WorkspacesTab environment = { environment } />
238
240
</ TabPane >
239
241
@@ -245,7 +247,6 @@ const EnvironmentDetail: React.FC = () => {
245
247
}
246
248
key = "userGroups"
247
249
>
248
- { /* Now using our standalone UserGroupsTab component */ }
249
250
< UserGroupsTab environment = { environment } />
250
251
</ TabPane >
251
252
</ Tabs >
0 commit comments