Adjusts sizes for the buildings in the colony panel. The height requirement of a building no longer changes when a worker is added. The vertical gap between buildings are now reduced on small screens.

This commit is contained in:
Stian Grenborgen 2023-06-11 14:30:37 +02:00
parent c9379c201b
commit 62fd6987ab
2 changed files with 2 additions and 3 deletions

View File

@ -76,7 +76,7 @@ public class BuildingPanel extends MigPanel implements PropertyChangeListener {
* @param building The building to display information from.
*/
public BuildingPanel(FreeColClient freeColClient, Building building) {
super(new MigLayout("", "[32][32][32]", "[32][44]"));
super(new MigLayout("", "[16!][16!][16!]", "[16!][22!]"));
this.freeColClient = freeColClient;
this.building = building;

View File

@ -1705,8 +1705,7 @@ public final class ColonyPanel extends PortPanel
* Creates this BuildingsPanel.
*/
public BuildingsPanel() {
super("BuildingsPanelUI",
new MigLayout("fill, wrap 4, insets 0, gap 0:10:10:push"));
super("BuildingsPanelUI", new MigLayout("fill, wrap 4, insets 0, gap 0:10:10:push 0:10:10:push"));
}