Skip to content

Commit

Permalink
Compact mode: Fix toolbar-row height
Browse files Browse the repository at this point in the history
In compact mode, the toolbar-row (the second bar up top) was being set
with a hard coded pixel (42px) which was resulting in extra space and
the misaligned icon row.

The initial diff comes from:
  e88d934
  Fix toolbar up section after w2ui rework

Maybe there is something I missed, but I think we can now safely
remove that compact mode related CSS declaration while making sure
the one that is intended to affect notebookbar only does that.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic50c8a89578bb1dc7c2acf5f631fdea81a1d235d
  • Loading branch information
pedropintosilva committed Feb 28, 2025
1 parent 652e235 commit 7fe6141
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion browser/css/notebookbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ html[data-theme='dark'] .savemodified.unotoolbutton .unobutton img {
z-index: 11;
}

#toolbar-row {
.hasnotebookbar > #toolbar-row {
height: 74px;
}

Expand Down
4 changes: 0 additions & 4 deletions browser/css/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,6 @@
top: 3px;
}

.main-nav:not(.hasnotebookbar) ~ #toolbar-wrapper .toolbar-row {
height: 42px;
}

/* center the toolbar */
#tb_presentation-toolbar_item_left {
width: 50%;
Expand Down

0 comments on commit 7fe6141

Please sign in to comment.