@@ -131,7 +131,7 @@ class CoderGatewayRecentWorkspaceConnectionsView(private val setContentCallback:
131
131
}
132
132
}
133
133
}
134
- }.bottomGap(BottomGap .MEDIUM )
134
+ }.bottomGap(BottomGap .SMALL )
135
135
separator(background = WelcomeScreenUIManager .getSeparatorColor())
136
136
row {
137
137
resizableRow()
@@ -158,6 +158,7 @@ class CoderGatewayRecentWorkspaceConnectionsView(private val setContentCallback:
158
158
* Render the most recent connections, matching with fetched workspaces.
159
159
*/
160
160
private fun updateContentView () {
161
+ var top = true
161
162
val connections = getConnectionsByDeployment(true )
162
163
recentWorkspacesContentPanel.viewport.view = panel {
163
164
connections.forEach { (deploymentURL, connectionsByWorkspace) ->
@@ -172,6 +173,10 @@ class CoderGatewayRecentWorkspaceConnectionsView(private val setContentCallback:
172
173
} else {
173
174
Triple (AnimatedIcon .Default .INSTANCE , UIUtil .getContextHelpForeground(), " Querying workspace status..." )
174
175
}
176
+ val gap = if (top) {
177
+ top = false
178
+ TopGap .NONE
179
+ } else TopGap .MEDIUM
175
180
row {
176
181
icon(status.first).applyToComponent {
177
182
foreground = status.second
@@ -212,7 +217,7 @@ class CoderGatewayRecentWorkspaceConnectionsView(private val setContentCallback:
212
217
}
213
218
}
214
219
})
215
- }.topGap(TopGap . MEDIUM )
220
+ }.topGap(gap )
216
221
row {
217
222
label(status.third).applyToComponent { foreground = status.second }
218
223
}
0 commit comments