This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/master by this push:
new 810607f9565 feat: full width version dropdown items (#1351)
810607f9565 is described below
commit 810607f9565978cccf2bfe4d13ad793271468dd2
Author: Young <[email protected]>
AuthorDate: Wed Jan 11 14:21:57 2023 +0800
feat: full width version dropdown items (#1351)
---
doc/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx | 1 +
doc/src/theme/NavbarItem/style.scss | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/doc/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx
b/doc/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx
index 97073f368bc..bbb979fba23 100644
--- a/doc/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx
+++ b/doc/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx
@@ -19,6 +19,7 @@ import type { GlobalDataVersion } from
'@docusaurus/plugin-content-docs-types';
import clsx from 'clsx';
import { LTSVersions } from '../../../../config/apisix-versions';
import style from './style.module.scss';
+import './style.scss';
const getVersionMainDoc = (version: GlobalDataVersion) =>
version.docs.find((doc) => doc.id === version.mainDocId)!;
diff --git a/doc/src/theme/NavbarItem/style.scss
b/doc/src/theme/NavbarItem/style.scss
new file mode 100644
index 00000000000..f15be77a87d
--- /dev/null
+++ b/doc/src/theme/NavbarItem/style.scss
@@ -0,0 +1,6 @@
+// for sidebar doc version dropdown
+div.navbar-sidebar, div.docs-doc-page {
+ .dropdown__menu .dropdown__link {
+ width: 100%;
+ }
+}