Longer fields, width cap

This commit is contained in:
Anuken
2026-09-07 13:55:49 -04:00
parent a9ff32df12
commit 16ee499f75
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ public class LCanvas extends Table{
}
public void rebuild(){
targetWidth = Math.max(400f, Core.graphics.getWidth() / Scl.scl(1f) * 0.95f - Scl.scl(80f));
targetWidth = Core.graphics.isPortrait() ? 400f : Mathf.clamp(Core.graphics.getWidth() / Scl.scl(1f) * 0.95f - Scl.scl(80f), 400f, 1200f);
float s = pane != null ? pane.getVisualScrollY() : 0f;
String toLoad = statements != null ? save() : null;
+2 -2
View File
@@ -164,7 +164,7 @@ public abstract class LStatement{
protected Cell<TextField> fields(Table table, String desc, String value, Cons<String> setter){
table.add(desc).padLeft(10).left().self(this::param);
return field(table, value, setter).width(100f).padRight(10).left();
return field(table, value, setter).width(180f).padRight(10).left();
}
/** Puts the text and field in one table, taking up one cell. */
@@ -173,7 +173,7 @@ public abstract class LStatement{
table.table(t -> {
t.setColor(table.color);
t.add(desc).padLeft(10).left().self(this::param);
result[0] = field(t, value, setter).width(100f).padRight(10).left();
result[0] = field(t, value, setter).width(180f).padRight(10).left();
});
return result[0];