Merge pull request #6111 from xyzmaker123/5189-trigger-price-prompt-truncation

Trigger price truncation of prompt text
This commit is contained in:
Christoph Atteneder 2022-03-21 11:01:36 +01:00 committed by GitHub
commit 523635319f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,6 +48,7 @@ import bisq.core.locale.Res;
import bisq.common.util.Tuple2;
import bisq.common.util.Tuple3;
import bisq.common.util.Tuple4;
import bisq.common.util.Utilities;
import de.jensd.fx.fontawesome.AwesomeDude;
import de.jensd.fx.fontawesome.AwesomeIcon;
@ -2148,7 +2149,7 @@ public class FormBuilder {
public static Tuple3<HBox, InfoInputTextField, Label> getEditableValueBoxWithInfo(String promptText) {
InfoInputTextField infoInputTextField = new InfoInputTextField(60);
InputTextField input = infoInputTextField.getInputTextField();
input.setPromptText(promptText);
input.setPromptText(Utilities.toTruncatedString(promptText, 28));
Label label = new AutoTooltipLabel(Res.getBaseCurrencyCode());
label.getStyleClass().add("input-label");