Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
iOS: Fix fontname btn styles and inherit defaults from...
existent classes while overruling line-height and padding
for that particular btn (has np chevron since it's a btn and not a combobox)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I393c972b44402c4030a6d7838750cfbd8156530e
  • Loading branch information
pedropintosilva committed Nov 12, 2020
1 parent 4f2ce5a commit 169ab2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions loleaflet/css/toolbar.css
Expand Up @@ -394,6 +394,12 @@ button.leaflet-control-search-next
margin-right: 5px;
width: 150px !important;
}
#fontnamecombobox {
border-color: transparent;
background-color: transparent;
line-height: 24px;
padding-right: 8px;
}
.fontsizes-select {
width: 55px !important;
}
Expand Down
3 changes: 3 additions & 0 deletions loleaflet/src/control/Control.NotebookbarBuilder.js
Expand Up @@ -205,6 +205,9 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({

if (commandName === '.uno:CharFontName') {
if (window.ThisIsTheiOSApp) {
$('#table-fontnamecombobox').addClass('select2 select2-container select2-container--default');
$('#table-fontnamecombobox > .row.notebookbar').addClass('select2-selection select2-selection--single');
$('#fontnamecombobox').addClass('select2-selection__rendered');
$('#fontnamecombobox').html(state);
window.LastSetiOSFontNameButtonFont = state;
} else {
Expand Down

0 comments on commit 169ab2c

Please sign in to comment.