editor: enhance width control

This commit is contained in:
Reorx 2023-02-08 23:45:13 +08:00
parent 281b5e0600
commit 357245d234
2 changed files with 11 additions and 1 deletions

View File

@ -3,6 +3,11 @@
<head>
<meta charset="UTF-8">
<title>CV</title>
<style>
body {
border-right: 1px solid #ddd;
}
</style>
</head>
<body>
<div class="cv-container"></div>

View File

@ -7,9 +7,14 @@ button {
#main {
display: grid;
grid-template-columns: 150px 1fr 1fr;
grid-template-columns: 150px minmax(500px, 1fr) 1fr;
grid-template-rows: 100vh;
// 800px is approximately the width of A4, when the screen is larger that 150 + 800px + A4, the middle column should keep 800px wide
@media screen and (min-width: 1750px) {
grid-template-columns: 150px 800px 1fr;
}
> .column {
overflow-y: auto;
}