Skip to content

Commit 3a9390e

Browse files
committed
UY-1268 fixed initial with setting of scopes grid
1 parent 0e5d542 commit 3a9390e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

oauth/src/main/java/pl/edu/icm/unity/oauth/as/console/OAuthEditorGeneralTab.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -483,15 +483,16 @@ private CollapsibleLayout buildScopesSection()
483483
s -> s != null && s.getName() != null && systemScopesNames.contains(s.getName()), false);
484484
Column<OAuthScopeBean, Component> addGotoEditColumn = scopesGrid
485485
.addGotoEditColumn(s -> s.getName(), msg.getMessage("OAuthEditorGeneralTab.scopeName"), 10)
486-
.setWidth(220);
486+
.setMinimumWidth(200);
487487
addGotoEditColumn.setResizable(true);
488488
addGotoEditColumn.setId("name");
489489
scopesGrid.addCheckboxColumn(s -> s.isEnabled(), msg.getMessage("OAuthEditorGeneralTab.scopeEnabled"), 10)
490-
.setResizable(true).setWidth(60);
491-
scopesGrid.addTextColumn(s -> s.getDescription(), msg.getMessage("OAuthEditorGeneralTab.scopeDescription"), 30)
490+
.setResizable(true).setSortable(false)
491+
.setMinimumWidth(70);
492+
scopesGrid.addTextColumn(s -> s.getDescription(), msg.getMessage("OAuthEditorGeneralTab.scopeDescription"), 20)
492493
.setResizable(true);
493494
scopesGrid.addTextColumn(s -> s.getAttributes() != null ? String.join(",", s.getAttributes()) : "",
494-
msg.getMessage("OAuthEditorGeneralTab.scopeAttributes"), 30).setResizable(true);
495+
msg.getMessage("OAuthEditorGeneralTab.scopeAttributes"), 20).setResizable(true);
495496
scopesGrid.setMinHeightByRow(12);
496497
addGotoEditColumn.setComparator((s1, s2) -> compareScopes(systemScopesNames, s1, s2));
497498
configBinder.forField(scopesGrid).bind("scopes");

0 commit comments

Comments
 (0)