Skip to content

Commit 07b143b

Browse files
committed
Notebookbar: Fix toolbar alignments on safari
Signed-off-by: Banobe Pascal <[email protected]> Change-Id: I7059c81ff35b975176b0ee65af7e0293b4973810
1 parent 8d3b608 commit 07b143b

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

browser/css/jsdialogs.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ algned to the bottom */
418418
.notebookbar.ui-overflow-group:not(.ui-overflow-group-container-with-label) {
419419
align-content: center;
420420
height: var(--notebookbar-element-height) !important;
421-
margin-bottom: 14px;
422421
}
423422

424423
.ui-overflow-manager > .notebookbar.ui-iconview,
@@ -428,13 +427,17 @@ algned to the bottom */
428427
}
429428

430429
.ui-overflow-manager > .notebookbar:not(.ui-separator):not(.ui-overflow-group):not(:has(.ui-overflow-group-container-with-label)) {
431-
height: var(--notebookbar-element-height);
430+
height: 49px;
432431
/* 14px extra margin for containers without label */
433432
margin-bottom: 14px;
434433
}
435434

436435
.ui-overflow-manager > .notebookbar.vertical:not(.ui-separator) {
437436
height: var(--notebookbar-element-height) !important;
437+
}
438+
439+
.ui-overflow-group .ui-overflow-group-inner .unotoolbutton.menubutton[id^='overflow-button'] {
440+
height: 49px;
438441
margin-bottom: 14px !important;
439442
}
440443

browser/css/notebookbar.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ html[data-theme='dark'] .savemodified.unotoolbutton .unobutton img {
218218
.root-container.notebookbar {
219219
display: table-cell;
220220
vertical-align: middle;
221+
align-content: center;
221222
}
222223

223224
#toolbar-wrapper.hasnotebookbar {
@@ -259,8 +260,7 @@ html[data-theme='dark'] .savemodified.unotoolbutton .unobutton img {
259260
color: var(--color-main-text);
260261
}
261262

262-
.horizontal.notebookbar:has(.unoBezier_Unfilled) {
263-
height: 100%;
263+
.horizontal.notebookbar .ui-overflow-group #insert-illustrations-content .ui-overflow-group-content {
264264
align-items: start;
265265
}
266266

@@ -455,7 +455,7 @@ html[data-theme='dark'] .savemodified.unotoolbutton .unobutton img {
455455
#transitions_icons,
456456
#custom_animation_list,
457457
#effect_list {
458-
height: var(--notebookbar-element-height);
458+
height: 60px;
459459
overflow: auto;
460460
display: grid;
461461
row-gap: 0;
@@ -504,9 +504,10 @@ html[data-theme='dark'] .savemodified.unotoolbutton .unobutton img {
504504
border: 1px solid var(--color-stylesview-border);
505505
border-top-right-radius: var(--border-radius);
506506
border-bottom-right-radius: var(--border-radius);
507-
height: var(--notebookbar-element-height);
507+
height: 60px !important;
508508
margin-inline-start: -5px;
509509
box-sizing: border-box;
510+
margin-bottom: 4px !important;
510511
}
511512

512513
#stylesview-btn.vertical {

0 commit comments

Comments
 (0)