@@ -109,11 +109,13 @@ const EnvironmentDetail: React.FC = () => {
109
109
) ;
110
110
}
111
111
return (
112
- < div className = "environment-detail-container" style = { { padding : "24px" , flex : 1 } } >
113
-
114
- < Breadcrumb style = { { marginBottom : "16px" } } >
112
+ < div
113
+ className = "environment-detail-container"
114
+ style = { { padding : "24px" , flex : 1 } }
115
+ >
116
+ < Breadcrumb style = { { marginBottom : "16px" } } >
115
117
< Breadcrumb . Item >
116
- < span
118
+ < span
117
119
style = { { cursor : "pointer" } }
118
120
onClick = { ( ) => history . push ( "/setting/environments" ) }
119
121
>
@@ -122,7 +124,6 @@ const EnvironmentDetail: React.FC = () => {
122
124
</ Breadcrumb . Item >
123
125
< Breadcrumb . Item > { environment . environmentName } </ Breadcrumb . Item >
124
126
</ Breadcrumb >
125
-
126
127
127
128
{ /* Header with environment name and controls */ }
128
129
< div
@@ -131,33 +132,35 @@ const EnvironmentDetail: React.FC = () => {
131
132
marginBottom : "24px" ,
132
133
display : "flex" ,
133
134
justifyContent : "space-between" ,
134
- alignItems : "center" ,
135
+ alignItems : "flex-start" , // Changed from center to allow wrapping
136
+ flexWrap : "wrap" , // Allow wrapping on small screens
137
+ gap : "16px" , // Add spacing between wrapped elements
135
138
} }
136
139
>
137
- < div >
138
- < Title level = { 3 } >
140
+ < div style = { { flex : "1 1 auto" , minWidth : "200px" } } >
141
+ < Title level = { 3 } style = { { margin : 0 , wordBreak : "break-word" } } >
139
142
{ environment . environmentName || "Unnamed Environment" }
140
143
</ Title >
141
144
< Text type = "secondary" > ID: { environment . environmentId } </ Text >
142
145
</ div >
143
- < Dropdown overlay = { actionsMenu } trigger = { [ 'click' ] } >
144
- < Button
145
- icon = { < MoreOutlined /> }
146
- shape = "circle"
147
- size = "large"
148
- />
149
- </ Dropdown >
146
+ < div style = { { flexShrink : 0 } } >
147
+ < Dropdown overlay = { actionsMenu } trigger = { [ "click" ] } >
148
+ < Button icon = { < MoreOutlined /> } shape = "circle" size = "large" />
149
+ </ Dropdown >
150
+ </ div >
150
151
</ div >
151
152
152
- { /* Basic Environment Information Card */ }
153
+ { /* Basic Environment Information Card - improved responsiveness */ }
153
154
< Card
154
155
title = "Environment Overview"
155
156
style = { { marginBottom : "24px" } }
156
157
extra = { environment . isMaster && < Tag color = "green" > Master</ Tag > }
157
158
>
158
159
< Descriptions
159
160
bordered
161
+ layout = "vertical" // Change to vertical layout on smaller screens
160
162
column = { { xxl : 4 , xl : 3 , lg : 3 , md : 2 , sm : 1 , xs : 1 } }
163
+ size = "small" // Use smaller size on mobile
161
164
>
162
165
< Descriptions . Item label = "Domain" >
163
166
{ environment . environmentFrontendUrl ? (
@@ -200,7 +203,7 @@ const EnvironmentDetail: React.FC = () => {
200
203
201
204
{ /* Tabs for Workspaces and User Groups */ }
202
205
< Tabs defaultActiveKey = "workspaces" >
203
- < TabPane tab = "Workspaces" key = "workspaces" >
206
+ < TabPane tab = "Workspaces" key = "workspaces" >
204
207
{ /* Using our new generic component with the workspace config */ }
205
208
< DeployableItemsTab
206
209
environment = { environment }
@@ -215,14 +218,13 @@ const EnvironmentDetail: React.FC = () => {
215
218
</ span >
216
219
}
217
220
key = "userGroups"
218
- >
221
+ >
219
222
{ /* Using our new generic component with the user group config */ }
220
223
< DeployableItemsTab
221
224
environment = { environment }
222
225
config = { userGroupsConfig }
223
226
title = "User Groups in this Environment"
224
227
/>
225
-
226
228
</ TabPane >
227
229
</ Tabs >
228
230
{ /* Edit Environment Modal */ }
@@ -235,7 +237,6 @@ const EnvironmentDetail: React.FC = () => {
235
237
loading = { isUpdating }
236
238
/>
237
239
) }
238
-
239
240
</ div >
240
241
) ;
241
242
} ;
0 commit comments