Skip to content

High performance self-hosted photo and video management solution.

fix(docs): show version selection dropdown on mobile (#15894)

Nicholas Flamyc4531fc4d372
diff --git a/docs/src/components/version-switcher.tsx b/docs/src/components/version-switcher.tsx
index 56fcd4f569..5f7e1c807f 100644
--- a/docs/src/components/version-switcher.tsx
+++ b/docs/src/components/version-switcher.tsx
@@ -44,7 +44,7 @@ export default function VersionSwitcher(): JSX.Element {
return (
versions.length > 0 && (
<DropdownNavbarItem
- className="navbar__item"
+ className="version-switcher-34ab39"
label={label}
mobile={windowSize === 'mobile'}
items={versions.map(({ label, url }) => ({
diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css
index dc3ff4e9ef..fd3f199ce8 100644
--- a/docs/src/css/custom.css
+++ b/docs/src/css/custom.css
@@ -75,6 +75,11 @@ div[class^='announcementBar_'] {
font-weight: 500;
}
+/* workaround for version switcher PR 15894 */
+div[class*='navbar__items'] > li:has(a[class*='version-switcher-34ab39']) {
+ display: none;
+}
+
code {
font-weight: 600;
}