Better support for larger text in keyboard tooltips.

This commit is contained in:
Paulo Reis 2016-06-15 15:27:30 +01:00
parent a5abc7392d
commit e891a47a9e
2 changed files with 7 additions and 1 deletions

View file

@ -2,7 +2,7 @@ div.full-size.pdf(ng-controller="PdfController")
.toolbar.toolbar-tall
.btn-group(
dropdown,
tooltip="#{translate('recompile_pdf')} ({{modifierKey}} + Enter)"
tooltip-html="'#{translate('recompile_pdf')} <span class=\"keyboard-shortcut\">({{modifierKey}} + Enter)</span>'"
tooltip-class="keyboard-tooltip"
tooltip-popup-delay="500"
tooltip-append-to-body="true"

View file

@ -170,5 +170,11 @@
}
.keyboard-tooltip {
.tooltip-inner {
max-width: none;
}
}
.keyboard-shortcut {
white-space: nowrap;
}