Trigger price truncation of prompt text

This commit is contained in:
xyzmaker123 2022-03-18 09:56:58 +01:00
parent 64f31f103d
commit 3dcc6e6e18
No known key found for this signature in database
GPG Key ID: 47689699B7B0AAFC

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");