Fix mobile toolbar elements overlapping on small screens (#2856)

This commit is contained in:
ACX
2026-02-22 21:07:08 -07:00
committed by GitHub
parent 88622a66dd
commit 1c82461e49
4 changed files with 26 additions and 14 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username patreon: # Replace with a single Patreon username
open_collective: booklore open_collective: booklore
ko_fi: # Replace with a single Ko-fi username ko_fi: bookloredev
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username liberapay: # Replace with a single Liberapay username
@@ -17,8 +17,8 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
gap: 0.5rem; gap: 0.25rem;
padding: 0.5rem 0.5rem; padding: 0.35rem 0.35rem;
border-radius: 0.75rem 0.75rem 0 0; border-radius: 0.75rem 0.75rem 0 0;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
background-color: var(--card-background); background-color: var(--card-background);
@@ -60,6 +60,7 @@
margin: 0; margin: 0;
@media (max-width: 767px) { @media (max-width: 767px) {
font-size: 1rem;
padding-left: 0.25rem; padding-left: 0.25rem;
} }
} }
@@ -87,7 +88,7 @@
display: flex; display: flex;
flex-wrap: nowrap; flex-wrap: nowrap;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.25rem;
flex-shrink: 0; flex-shrink: 0;
@media (min-width: 768px) { @media (min-width: 768px) {
@@ -99,7 +100,7 @@
display: flex; display: flex;
flex-wrap: nowrap; flex-wrap: nowrap;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.25rem;
@media (min-width: 768px) { @media (min-width: 768px) {
gap: 1.5rem; gap: 1.5rem;
@@ -392,7 +393,6 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-shrink: 0; flex-shrink: 0;
font-size: 5rem;
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
width: 2.5rem; width: 2.5rem;
height: 2.5rem; height: 2.5rem;
@@ -404,6 +404,11 @@
background-color: var(--card-background); background-color: var(--card-background);
cursor: pointer; cursor: pointer;
@media (max-width: 767px) {
width: 2rem;
height: 2rem;
}
&:hover { &:hover {
border-color: var(--primary-color); border-color: var(--primary-color);
} }
@@ -412,6 +417,10 @@
color: var(--primary-color); color: var(--primary-color);
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 100; font-weight: 100;
@media (max-width: 767px) {
font-size: 1rem;
}
} }
} }
@@ -433,6 +442,10 @@
line-height: 2.5rem; line-height: 2.5rem;
font-size: 1rem; font-size: 1rem;
box-sizing: border-box; box-sizing: border-box;
@media (max-width: 767px) {
min-width: 0;
}
} }
// Filter overlay (mobile sidebar) // Filter overlay (mobile sidebar)
@@ -2,6 +2,7 @@
margin-left: 0.5rem; margin-left: 0.5rem;
position: relative; position: relative;
width: 100%; width: 100%;
min-width: 0;
@media (min-width: 768px) { @media (min-width: 768px) {
margin-left: 1.25rem; margin-left: 1.25rem;
@@ -28,19 +28,17 @@
display: flex; display: flex;
align-items: center; align-items: center;
width: 100%; width: 100%;
min-width: 0;
gap: 1rem; gap: 1rem;
@media (max-width: 767px) {
gap: 0.5rem;
}
} }
.topbar-search { .topbar-search {
flex-grow: 1; flex-grow: 1;
min-width: 0;
@media (max-width: 768px) {
display: block;
}
@media (min-width: 768px) {
display: block;
}
} }
.topbar-desktop-items { .topbar-desktop-items {