aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java
diff options
context:
space:
mode:
authorisXander <isxander@users.noreply.github.com>2022-09-19 19:44:42 +0100
committerisXander <isxander@users.noreply.github.com>2022-09-19 19:44:42 +0100
commit38aebfc23ec50798c44d2e0790924e62f4c46f98 (patch)
tree805e08e10f823d57dae4cdc946226cd6f6e1d4fe /src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java
parentde1c8a317226b58fe03497027136eaed1adfd808 (diff)
downloadYetAnotherConfigLib-38aebfc23ec50798c44d2e0790924e62f4c46f98.tar.gz
YetAnotherConfigLib-38aebfc23ec50798c44d2e0790924e62f4c46f98.tar.bz2
YetAnotherConfigLib-38aebfc23ec50798c44d2e0790924e62f4c46f98.zip
make tooltips max width just a little smaller & allow search query to match ActionController value text
Diffstat (limited to 'src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java')
-rw-r--r--src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java b/src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java
index dded9c1..8385dfb 100644
--- a/src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java
+++ b/src/main/java/dev/isxander/yacl/gui/controllers/ControllerWidget.java
@@ -81,7 +81,7 @@ public abstract class ControllerWidget<T extends Controller<?>> extends Abstract
}
private void updateTooltip() {
- this.wrappedTooltip = MultilineText.create(textRenderer, control.option().tooltip(), screen.width / 3 * 2);
+ this.wrappedTooltip = MultilineText.create(textRenderer, control.option().tooltip(), screen.width / 3 * 2 - 10);
}
protected int getControlWidth() {