Misc UI fixes

This commit is contained in:
Anuken
2025-04-13 22:23:32 -04:00
parent 1b6c0c7717
commit 017fbeb4e9
5 changed files with 9 additions and 9 deletions

View File

@@ -432,7 +432,7 @@ public class CustomRulesDialog extends BaseDialog{
public void ruleInfo(Cell<?> cell, String text){
if(Core.bundle.has(text.substring(1) + ".info")){
if(mobile){
if(mobile && !graphics.isPortrait()){ //disabled in portrait - broken and goes offscreen
Table table = new Table();
table.add(cell.get()).left().expandX().fillX();
cell.clearElement();

View File

@@ -165,7 +165,7 @@ public class ModsDialog extends BaseDialog{
void setup(){
float h = 110f;
float w = Math.min(Core.graphics.getWidth() / Scl.scl(1.05f), 520f);
float w = Math.min(Core.graphics.getWidth() / Scl.scl(1.05f) - Scl.scl(28f), 520f);
cont.clear();
cont.defaults().width(Math.min(Core.graphics.getWidth() / Scl.scl(1.05f), 556f)).pad(4);