fix home sidebar closed state buttons

- was not sized properly for closed state
- different sizing for firefox since firefox doesnt insert the scrollbar like chrome does
This commit is contained in:
Christopher 2025-05-09 22:26:50 -06:00
parent b354b2ed52
commit 53d03237c5

View file

@ -28,7 +28,7 @@
} }
//START closed state of the sidebar //START closed state of the sidebar
&.closed { &.closed {
width: 2.825rem; width: 3.125rem;
overflow-x: hidden; overflow-x: hidden;
overflow-y: hidden; overflow-y: hidden;
background-color: var(--side-nav-closed-bg-color); background-color: var(--side-nav-closed-bg-color);
@ -36,6 +36,11 @@
height: calc((var(--vh) * 100) - 6.5rem); height: calc((var(--vh) * 100) - 6.5rem);
border-radius: unset; border-radius: unset;
// For Firefox
@supports (-moz-appearance: none) {
width: 2.5rem;
}
.side-nav { .side-nav {
.side-nav-item { .side-nav-item {
color: var(--side-nav-item-closed-color); color: var(--side-nav-item-closed-color);
@ -46,6 +51,10 @@
} }
} }
.phone-hidden:first-of-type {
margin-left: unset;
}
.active-highlight { .active-highlight {
opacity: 0; opacity: 0;
} }
@ -83,10 +92,10 @@
display: flex; display: flex;
&:first-of-type { &:first-of-type {
text-align: center;
width: 2.5rem; width: 2.5rem;
min-width: 2.5rem; min-width: 2.5rem;
margin-left: 0.3rem; margin-left: 0.3rem;
justify-content: center;
} }
&:last-child { &:last-child {
@ -95,9 +104,7 @@
} }
div { div {
align-items: center;
height: 100%; height: 100%;
justify-content: inherit;
padding: 0 0.625rem; padding: 0 0.625rem;
i { i {
@ -287,9 +294,9 @@
} }
} }
} }
//START sidebar closed //START sidebar bottom closed
&.closed { &.closed {
width: 3.4375rem; width: 2.5rem;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
background-color: unset; background-color: unset;
@ -304,7 +311,7 @@
} }
} }
} }
//END sidebar closed //END sidebar bottom closed
} }
//END kavita+ subscription bottom heart button //END kavita+ subscription bottom heart button