File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/kotlin/com/coder/gateway/views/steps Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import com.coder.gateway.sdk.OS
99import com.coder.gateway.sdk.v2.models.ProvisionerJobStatus
1010import com.coder.gateway.sdk.v2.models.WorkspaceBuildTransition
1111import com.intellij.ui.dsl.builder.panel
12+ import com.intellij.ui.dsl.gridLayout.HorizontalAlign
1213import com.intellij.util.ui.JBFont
1314import java.awt.Component
1415import javax.swing.JList
@@ -23,11 +24,12 @@ class WorkspaceCellRenderer : ListCellRenderer<WorkspaceAgentModel> {
2324 icon(iconForImageTag(workspace))
2425 label(workspace.name).applyToComponent {
2526 font = JBFont .h3()
26- }
27+ }.resizableColumn().horizontalAlign( HorizontalAlign . FILL )
2728 panel {
2829 row {
2930 icon(iconForStatus(workspace))
3031 label(labelForStatus(workspace))
32+ cell()
3133 }
3234 }
3335 }
@@ -43,7 +45,7 @@ class WorkspaceCellRenderer : ListCellRenderer<WorkspaceAgentModel> {
4345 }
4446 }
4547
46- private fun iconForImageTag (workspace : WorkspaceAgentModel ) = when (workspace? .agentOS) {
48+ private fun iconForImageTag (workspace : WorkspaceAgentModel ) = when (workspace.agentOS) {
4749 OS .LINUX -> CoderIcons .LINUX
4850 OS .WINDOWS -> CoderIcons .WINDOWS
4951 OS .MAC -> CoderIcons .MACOS
You can’t perform that action at this time.
0 commit comments