style(config): update styles for main and config sections in HTML
This commit is contained in:
+7
-3
@@ -9,10 +9,16 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
padding: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
#config {
|
#config {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
border-top: 1px solid #ccc;
|
border-top: 1px solid var(--border-color);
|
||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@@ -1177,8 +1183,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const layout = () => {
|
const layout = () => {
|
||||||
const top = container.getBoundingClientRect().top;
|
|
||||||
container.style.height = `${Math.max(200, window.innerHeight - top)}px`;
|
|
||||||
editor.layout();
|
editor.layout();
|
||||||
};
|
};
|
||||||
window.addEventListener('resize', layout);
|
window.addEventListener('resize', layout);
|
||||||
|
|||||||
Reference in New Issue
Block a user