Skip to content

Commit

Permalink
Merge pull request #6111 from xyzmaker123/5189-trigger-price-prompt-t…
Browse files Browse the repository at this point in the history
…runcation

Trigger price truncation of prompt text
  • Loading branch information
ripcurlx authored Mar 21, 2022
2 parents 06dd94f + 3dcc6e6 commit 5236353
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion desktop/src/main/java/bisq/desktop/util/FormBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
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;
Expand Down Expand Up @@ -2148,7 +2149,7 @@ public static Tuple3<HBox, InputTextField, Label> getEditableValueBox(String pro
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");
Expand Down

0 comments on commit 5236353

Please sign in to comment.