Small refactor for user preferences

This commit is contained in:
Magnus Åhall 2026-06-18 09:21:23 +02:00
parent 1a712fb7a9
commit 81d02b82dc
13 changed files with 202 additions and 112 deletions

View file

@ -73,9 +73,10 @@ button {
1fr;
}
&.page-history {
/* The other pages just gets the whole page without dividing it up. */
&:not(.page-node) {
grid-template-areas:
"tree-expander tree pad1 n2-pagehistory pad2"
"tree-expander tree pad1 n2-page pad2"
;
grid-template-columns:
@ -245,7 +246,6 @@ button {
#notes2 {
&.page-node {
#page-root {
display: none;
}
@ -260,7 +260,7 @@ button {
display: contents;
n2-pagestorage {
grid-area: content;
grid-area: n2-page;
}
}
}
@ -268,9 +268,14 @@ button {
&.page-history {
#page-history {
display: grid;
grid-area: n2-pagehistory;
grid-area: n2-page;
}
}
n2-pagehistory {}
&.page-preferences {
#page-preferences {
display: grid !important;
grid-area: n2-page;
}
}
@ -282,7 +287,6 @@ button {
#page-root {
display: contents !important;
}
}
}