fix(layout): make stacked notes stick horizontally when scrolling

Add left offset to each stacked note so position: sticky activates
during horizontal scroll, pinning notes progressively to the right
of the readme column at calc((index + 1) * var(--note-width)).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Julien Calixte
2026-04-22 23:56:43 +02:00
parent 449a16f791
commit 86c9feaf55

View File

@@ -124,6 +124,7 @@ onUnmounted(() => {
:user="user"
:repo="repo"
:title="titles[stackedNote]"
:style="{ left: `calc(${index + 1} * var(--note-width))` }"
/>
</main>
</template>