Merge pull request #11247 from overleaf/mj-toolbar-overflow

[cm6+rt] Wrap formatting buttons if editor is too narrow

GitOrigin-RevId: d1b234c721f4bed67f1da567b90139f0c95895f0
This commit is contained in:
Mathias Jakobsen 2023-01-16 12:03:51 +00:00 committed by Copybot
parent f94a325288
commit 778aa45e96

View file

@ -169,6 +169,17 @@
border-radius: @btn-border-radius-base 0 0 @btn-border-radius-base;
}
}
&.toolbar-wrap {
min-height: @editor-toolbar-height;
height: unset; // Allow to grow if buttons wrap
flex-wrap: wrap;
.formatting-buttons {
flex-grow: 1 0 auto;
width: unset;
}
}
}
.loading-screen {