0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-16 10:22:42 +00:00

wrap correctly

This commit is contained in:
Víctor Losada Hernández
2024-08-14 20:38:38 +02:00
parent 31fcf28e3f
commit f449132b4c
2 changed files with 14 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
.editor { .editor {
position : relative; position : relative;
width : 100%; width : 100%;
container: editor / inline-size;
.codeEditor { .codeEditor {
height : 100%; height : 100%;

View File

@@ -2,11 +2,18 @@
@import (less) '././././themes/fonts/5e/fonts.less'; @import (less) '././././themes/fonts/5e/fonts.less';
.snippetBar { .snippetBar {
@menuHeight : 25px; @menuHeight : 25px;
position : relative; position : relative;
height : @menuHeight; height : @menuHeight;
color : black; color : black;
background-color : #DDDDDD; background-color : #DDDDDD;
min-width : 331px;
@container editor (width < 538px) {
display : flex;
flex-wrap : wrap;
height : 50px;
}
.editors { .editors {
position : absolute; position : absolute;
@@ -15,6 +22,11 @@
display : flex; display : flex;
justify-content : space-between; justify-content : space-between;
height : @menuHeight; height : @menuHeight;
@container editor (width < 538px) {
position : static;
}
& > div { & > div {
width : @menuHeight; width : @menuHeight;
height : @menuHeight; height : @menuHeight;