refactor(notes): let mobile notes size to content

This commit is contained in:
Julien Calixte
2026-04-29 11:09:31 +02:00
parent 17f015b686
commit 3e9418285f
2 changed files with 1 additions and 5 deletions

View File

@@ -211,7 +211,6 @@ $header-height: 40px;
display: flex;
flex-direction: column;
overflow-y: auto;
height: 100%;
position: sticky;
&:not(:first-child) {
@@ -258,7 +257,6 @@ $header-height: 40px;
.note {
width: 100vw;
height: 100dvh;
overflow-y: visible;
}

View File

@@ -18,9 +18,7 @@ export const useResizeContainer = (
return
}
if (isMobile.value) {
container.style.height = `${(stackedNotes.value.length + 1) * 100}dvh`
} else {
if (!isMobile.value) {
container.style.minWidth = `${
getNoteWidth() * (stackedNotes.value.length + 1)
}px`