fix: journals scrolling
This commit is contained in:
parent
ffdf320c14
commit
6be729de50
1 changed files with 21 additions and 0 deletions
|
@ -2,6 +2,27 @@
|
||||||
(text "{% if journal -%}") (title (text "{{ journal.title }}")) (text "{% else %}") (title (text "Journals - {{ config.name }}")) (text "{%- endif %}")
|
(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 }}"))
|
(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 -%}")
|
(text "{% if view_mode and journal and is_editor -%} {% if note -%}")
|
||||||
; redirect to note
|
; redirect to note
|
||||||
(meta ("http-equiv" "refresh") ("content" "0; url=/@{{ user.username }}/{{ journal.title }}/{{ note.title }}"))
|
(meta ("http-equiv" "refresh") ("content" "0; url=/@{{ user.username }}/{{ journal.title }}/{{ note.title }}"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue