mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 13:39:01 +01:00
fix(share): redesign layout to avoid jumping on tablets
This commit is contained in:
parent
ce4f46c226
commit
618b67f551
@ -25,6 +25,7 @@
|
|||||||
.ck-content pre {
|
.ck-content pre {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
min-width: unset !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ck-content pre .copy-button {
|
.ck-content pre .copy-button {
|
||||||
|
|||||||
@ -1,13 +1,21 @@
|
|||||||
|
html,
|
||||||
|
body {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
#split-pane {
|
#split-pane {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
gap: 50px;
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#left-pane {
|
#left-pane {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: calc((100vw - 900px) / 2);
|
|
||||||
min-width: fit-content;
|
min-width: fit-content;
|
||||||
|
max-width: 20vw;
|
||||||
height: calc(100vh);
|
height: calc(100vh);
|
||||||
background: var(--background-secondary);
|
background: var(--background-secondary);
|
||||||
border-right: 5px solid var(--background-highlight);
|
border-right: 5px solid var(--background-highlight);
|
||||||
@ -15,18 +23,28 @@
|
|||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#right-pane {
|
#right-pane {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
gap: 40px;
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding-right: 50px;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main {
|
#main {
|
||||||
order: 2;
|
order: 2;
|
||||||
max-width: 900px;
|
max-width: 900px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
padding: 0 20px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
#main {
|
||||||
|
padding: 0 50px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -35,9 +35,18 @@
|
|||||||
|
|
||||||
@media (max-width: 48em) {
|
@media (max-width: 48em) {
|
||||||
|
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
width: unset;
|
||||||
|
height: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
#split-pane {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
#right-pane, #main {
|
#right-pane, #main {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: hidden;
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +54,6 @@
|
|||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#mobile-header {
|
#mobile-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user