Skip to content

Commit 24cb7c7

Browse files
committed
[QT] fix thin space word wrap line brake issue
The thin space QT html hack results in cut-off chars/nums after a line break. Avoid word wrap line breaks by using a smaller font and a line break before each alternative value)
1 parent 8bc1b3a commit 24cb7c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qt/sendcoinsdialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ void SendCoinsDialog::on_sendButton_clicked()
312312
if(u != model->getOptionsModel()->getDisplayUnit())
313313
alternativeUnits.append(BitcoinUnits::formatHtmlWithUnit(u, totalAmount));
314314
}
315-
questionString.append(tr("Total Amount %1 (= %2)")
315+
questionString.append(tr("Total Amount %1<span style='font-size:10pt;font-weight:normal;'><br />(=%2)</span>")
316316
.arg(BitcoinUnits::formatHtmlWithUnit(model->getOptionsModel()->getDisplayUnit(), totalAmount))
317-
.arg(alternativeUnits.join(" " + tr("or") + " ")));
317+
.arg(alternativeUnits.join(" " + tr("or") + "<br />")));
318318

319319
QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm send coins"),
320320
questionString.arg(formatted.join("<br />")),

0 commit comments

Comments
 (0)