@@ -9,6 +9,7 @@ import com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreenUIManager
9
9
import com.intellij.ui.components.ActionLink
10
10
import com.intellij.ui.components.JBScrollPane
11
11
import com.intellij.ui.dsl.builder.BottomGap
12
+ import com.intellij.ui.dsl.builder.TopGap
12
13
import com.intellij.ui.dsl.builder.panel
13
14
import com.intellij.ui.dsl.gridLayout.HorizontalAlign
14
15
import com.intellij.util.ui.JBFont
@@ -60,39 +61,38 @@ class CoderGatewayRecentWorkspaceConnectionsView : GatewayRecentConnections {
60
61
}.horizontalAlign(HorizontalAlign .LEFT )
61
62
cell()
62
63
}
63
- }
64
+ }.topGap( TopGap . MEDIUM )
64
65
65
- group {
66
- recentConnections.forEach { connectionDetails ->
67
- val product = IntelliJPlatformProduct .fromProductCode(connectionDetails.ideProductCode!! )!!
68
- row {
69
- icon(product.icon)
70
- cell(ActionLink (connectionDetails.projectPath!! ) {
71
- cs.launch {
72
- GatewayUI .getInstance().connect(
73
- mapOf (
74
- " type" to " coder" ,
75
- " coder_workspace_hostname" to " ${connectionDetails.coderWorkspaceHostname} " ,
76
- " project_path" to connectionDetails.projectPath!! ,
77
- " ide_product_code" to " ${product.productCode} " ,
78
- " ide_build_number" to " ${connectionDetails.ideBuildNumber} " ,
79
- " ide_download_link" to " ${connectionDetails.downloadSource} "
80
- )
66
+ recentConnections.forEach { connectionDetails ->
67
+ val product = IntelliJPlatformProduct .fromProductCode(connectionDetails.ideProductCode!! )!!
68
+ row {
69
+ icon(product.icon)
70
+ cell(ActionLink (connectionDetails.projectPath!! ) {
71
+ cs.launch {
72
+ GatewayUI .getInstance().connect(
73
+ mapOf (
74
+ " type" to " coder" ,
75
+ " coder_workspace_hostname" to " ${connectionDetails.coderWorkspaceHostname} " ,
76
+ " project_path" to connectionDetails.projectPath!! ,
77
+ " ide_product_code" to " ${product.productCode} " ,
78
+ " ide_build_number" to " ${connectionDetails.ideBuildNumber} " ,
79
+ " ide_download_link" to " ${connectionDetails.downloadSource} "
81
80
)
82
- }
83
- })
84
- label(" " ).resizableColumn().horizontalAlign(HorizontalAlign .FILL )
85
- label(" Last opened: ${connectionDetails.lastOpened} " ).horizontalAlign(HorizontalAlign .RIGHT ).applyToComponent {
86
- foreground = JBUI .CurrentTheme .ContextHelp .FOREGROUND
87
- font = ComponentPanelBuilder .getCommentFont(font)
81
+ )
88
82
}
83
+ })
84
+ label(" " ).resizableColumn().horizontalAlign(HorizontalAlign .FILL )
85
+ label(" Last opened: ${connectionDetails.lastOpened} " ).horizontalAlign(HorizontalAlign .RIGHT ).applyToComponent {
86
+ foreground = JBUI .CurrentTheme .ContextHelp .FOREGROUND
87
+ font = ComponentPanelBuilder .getCommentFont(font)
89
88
}
90
89
}
91
90
}
92
91
}
93
92
}
94
93
}.apply {
95
94
background = WelcomeScreenUIManager .getMainAssociatedComponentBackground()
95
+ border = JBUI .Borders .empty(0 , 0 , 0 , 12 )
96
96
}
97
97
}
98
98
}
0 commit comments