From 6be729de50c3f5c74965fbcfa077cf86a2c6ebc3 Mon Sep 17 00:00:00 2001 From: trisua Date: Thu, 19 Jun 2025 22:37:49 -0400 Subject: [PATCH] fix: journals scrolling --- crates/app/src/public/html/journals/app.lisp | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/crates/app/src/public/html/journals/app.lisp b/crates/app/src/public/html/journals/app.lisp index a5136ff..012909d 100644 --- a/crates/app/src/public/html/journals/app.lisp +++ b/crates/app/src/public/html/journals/app.lisp @@ -2,6 +2,27 @@ (text "{% if journal -%}") (title (text "{{ journal.title }}")) (text "{% else %}") (title (text "Journals - {{ config.name }}")) (text "{%- endif %}") (link ("rel" "stylesheet") ("data-turbo-temporary" "true") ("href" "/css/chats.css?v=tetratto-{{ random_cache_breaker }}")) +(style + (text "html, body { + overflow: hidden auto !important; + } + + .sidebar { + position: sticky; + top: 42px; + } + + @media screen and (max-width: 900px) { + .sidebar { + position: absolute; + top: unset; + } + + body.sidebars_shown { + overflow: hidden !important; + } + }")) + (text "{% if view_mode and journal and is_editor -%} {% if note -%}") ; redirect to note (meta ("http-equiv" "refresh") ("content" "0; url=/@{{ user.username }}/{{ journal.title }}/{{ note.title }}"))