fix(share): redesign layout to avoid jumping on tablets

This commit is contained in:
Elian Doran 2025-10-29 20:02:02 +02:00
parent ce4f46c226
commit 618b67f551
No known key found for this signature in database
3 changed files with 33 additions and 6 deletions

View File

@ -25,6 +25,7 @@
.ck-content pre {
overflow: auto;
position: relative;
min-width: unset !important;
}
.ck-content pre .copy-button {

View File

@ -1,13 +1,21 @@
html,
body {
width: 100vw;
height: 100vh;
}
#split-pane {
display: flex;
flex-direction: row;
gap: 50px;
width: 100vw;
height: 100vh;
overflow: hidden;
}
#left-pane {
display: flex;
width: calc((100vw - 900px) / 2);
min-width: fit-content;
max-width: 20vw;
height: calc(100vh);
background: var(--background-secondary);
border-right: 5px solid var(--background-highlight);
@ -15,18 +23,28 @@
position: sticky;
top: 0;
overflow-y: auto;
flex-shrink: 0;
}
#right-pane {
display: flex;
margin: 0 auto;
gap: 40px;
flex: 1;
padding-right: 50px;
overflow: auto;
}
#main {
order: 2;
max-width: 900px;
flex: 1;
padding: 0 20px;
box-sizing: border-box;
width: 100%;
overflow: auto;
}
@media (min-width: 1200px) {
#main {
padding: 0 50px;
}
}

View File

@ -35,9 +35,18 @@
@media (max-width: 48em) {
html,
body {
width: unset;
height: unset;
}
#split-pane {
overflow: auto;
}
#right-pane, #main {
width: 100%;
overflow: hidden;
padding: 0;
}
@ -45,7 +54,6 @@
padding: 1rem;
}
#mobile-header {
display: flex;
}