fix trade warning icons and revert trade icon

This commit is contained in:
woodser 2025-05-22 10:05:17 -04:00
parent f0162c05bc
commit c496ff84b4
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF
3 changed files with 3 additions and 2 deletions

View file

@ -183,7 +183,7 @@
}
.table-cell .jfx-button {
-fx-padding: 0 10 0 10;
-fx-padding: 0 7 0 7;
}
.tiny-button,

View file

@ -698,7 +698,7 @@ public class ClosedTradesView extends ActivatableViewAndModel<VBox, ClosedTrades
if (!empty && newItem != null && !trade.isPayoutConfirmed()) {
Label icon = FormBuilder.getIcon(AwesomeIcon.UNDO);
JFXButton iconButton = new JFXButton("", icon);
iconButton.setStyle("-fx-cursor: hand;");
iconButton.setStyle("-fx-cursor: hand; -fx-padding: 0 10 0 10;");
iconButton.getStyleClass().add("hidden-icon-button");
iconButton.setTooltip(new Tooltip(Res.get("portfolio.failed.revertToPending")));
iconButton.setOnAction(e -> onRevertTrade(trade));

View file

@ -978,6 +978,7 @@ public class PendingTradesView extends ActivatableViewAndModel<VBox, PendingTrad
HBox hBox = new HBox();
hBox.setSpacing(0);
//hBox.setAlignment(Pos.CENTER); // so spacing is consistent with column to the left
hBox.getChildren().addAll(warnIconButton, trashIconButton);
setGraphic(hBox);
} else {