Compare commits
2 Commits
3e9418285f
...
68022971cd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68022971cd | ||
|
|
f529832eee |
@@ -211,7 +211,6 @@ $header-height: 40px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow-y: auto;
|
||||
position: sticky;
|
||||
|
||||
&:not(:first-child) {
|
||||
border-top: 1px solid rgba(18, 19, 58, 0.2);
|
||||
@@ -257,6 +256,7 @@ $header-height: 40px;
|
||||
|
||||
.note {
|
||||
width: 100vw;
|
||||
height: 100dvh;
|
||||
overflow-y: visible;
|
||||
}
|
||||
|
||||
|
||||
@@ -313,6 +313,7 @@ $border-color: rgba(18, 19, 58, 0.2);
|
||||
@media screen and (max-width: 768px) {
|
||||
.stacked-note {
|
||||
padding: 0 0.75rem 1rem;
|
||||
height: 100dvh;
|
||||
|
||||
section {
|
||||
padding: 1rem 0 2rem;
|
||||
@@ -330,6 +331,8 @@ $border-color: rgba(18, 19, 58, 0.2);
|
||||
.stacked-note {
|
||||
border-top: 0;
|
||||
border-left: 1px solid $border-color;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.title-stacked-note {
|
||||
|
||||
@@ -193,6 +193,8 @@ $border-color: rgba(18, 19, 58, 0.2);
|
||||
.stacked-note {
|
||||
border-top: 0;
|
||||
border-left: 1px solid $border-color;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.title-stacked-note {
|
||||
|
||||
@@ -18,7 +18,9 @@ export const useResizeContainer = (
|
||||
return
|
||||
}
|
||||
|
||||
if (!isMobile.value) {
|
||||
if (isMobile.value) {
|
||||
container.style.height = `${(stackedNotes.value.length + 1) * 100}dvh`
|
||||
} else {
|
||||
container.style.minWidth = `${
|
||||
getNoteWidth() * (stackedNotes.value.length + 1)
|
||||
}px`
|
||||
|
||||
@@ -52,17 +52,17 @@ export const useRouteQueryStackedNotes = () => {
|
||||
index: number,
|
||||
attempts = 30
|
||||
) => {
|
||||
if (attempts <= 0) {
|
||||
scrollToNote((index + 1) * height.value)
|
||||
return
|
||||
}
|
||||
|
||||
const element = document.querySelector(
|
||||
`.note-${cleanNoteId}`
|
||||
) as HTMLElement | null
|
||||
|
||||
if (element) {
|
||||
scrollToNote(element.offsetTop)
|
||||
scrollToNote((index + 1) * element.clientHeight)
|
||||
return
|
||||
}
|
||||
|
||||
if (attempts <= 0) {
|
||||
scrollToNote((index + 1) * height.value)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -241,7 +241,6 @@ watch(
|
||||
overflow-y: auto;
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
position: sticky;
|
||||
|
||||
.title {
|
||||
text-align: left;
|
||||
|
||||
Reference in New Issue
Block a user