@@ -58,7 +58,7 @@ export default function () {
58
58
59
59
< ConfirmationModal
60
60
title = "Delete Inactive Workspaces"
61
- areYouSureText = "You are about to permanently delete your inactive workspaces. "
61
+ areYouSureText = "Are you sure you want to delete all inactive workspaces? "
62
62
buttonText = "Delete Inactive Workspaces"
63
63
visible = { ! ! deleteModalVisible }
64
64
onClose = { ( ) => setDeleteModalVisible ( false ) }
@@ -146,42 +146,49 @@ export default function () {
146
146
} ) }
147
147
{ activeWorkspaces . length > 0 && < div className = "py-6" > </ div > }
148
148
{ inactiveWorkspaces . length > 0 && (
149
- < div className = "pt-14" >
150
- < div className = "border-t border-gray-200 dark:border-gray-800" > </ div >
149
+ < div >
151
150
< div
152
151
onClick = { ( ) => setShowInactive ( ! showInactive ) }
153
- className = "flex cursor-pointer py-6"
152
+ className = "flex cursor-pointer py-6 px-6 flex-row text-gray-400 bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 rounded-xl mb-2 "
154
153
>
155
- < div className = "flex flex-col " >
156
- < h2 className = "" > Inactive Workspaces </ h2 >
154
+ < div className = "pr-2 " >
155
+ < Arrow up = { ! ! showInactive } / >
157
156
</ div >
158
- < div >
159
- < Arrow
160
- up = { ! ! showInactive }
161
- customBorderClasses = "text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400"
162
- />
157
+ < div className = "flex flex-grow flex-col " >
158
+ < div className = "font-medium text-gray-500 dark:text-gray-200 truncate" >
159
+ < span > Inactive Workspaces </ span >
160
+ < span className = "text-gray-400 dark:text-gray-400 bg-gray-200 dark:bg-gray-600 rounded-xl px-2 py-0.5 text-xs" >
161
+ { inactiveWorkspaces . length }
162
+ </ span >
163
+ </ div >
164
+ < div className = "text-sm flex-auto" >
165
+ Unpinned workspaces that have been inactive for more than 14 days will
166
+ be automatically deleted.{ " " }
167
+ < a
168
+ className = "gp-link"
169
+ href = "https://www.gitpod.io/docs/life-of-workspace/#garbage-collection"
170
+ onClick = { ( evt ) => evt . stopPropagation ( ) }
171
+ >
172
+ Learn more
173
+ </ a >
174
+ </ div >
163
175
</ div >
164
- </ div >
165
- { showInactive ? (
166
- < >
167
- < div className = "flex flex-row p-3 text-gray-400 bg-gray-50 dark:bg-gray-800 rounded-xl" >
168
- < div className = "text-sm flex-auto py-3" >
169
- Unpinned workspaces that have been inactive for more than 14 days
170
- will be automatically deleted.{ " " }
171
- < a
172
- className = "gp-link"
173
- href = "https://www.gitpod.io/docs/life-of-workspace/#garbage-collection"
174
- >
175
- Learn more
176
- </ a >
177
- </ div >
176
+ < div className = "self-center" >
177
+ { showInactive ? (
178
178
< button
179
- onClick = { ( ) => setDeleteModalVisible ( true ) }
180
- className = "ml-2 danger secondary w-64 p-2"
179
+ onClick = { ( evt ) => {
180
+ setDeleteModalVisible ( true ) ;
181
+ evt . stopPropagation ( ) ;
182
+ } }
183
+ className = "secondary danger"
181
184
>
182
185
Delete Inactive Workspaces
183
186
</ button >
184
- </ div >
187
+ ) : null }
188
+ </ div >
189
+ </ div >
190
+ { showInactive ? (
191
+ < >
185
192
{ inactiveWorkspaces . map ( ( e ) => {
186
193
return (
187
194
< WorkspaceEntry
0 commit comments