You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fory.apache.org by ch...@apache.org on 2026/06/14 05:27:48 UTC
(fory-site) branch fix_website created (now a7e9824c3d)
This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a change to branch fix_website
in repository https://gitbox.apache.org/repos/asf/fory-site.git
at a7e9824c3d Fix docs sidebar clipping on wide screens
This branch includes the following new commits:
new a7e9824c3d Fix docs sidebar clipping on wide screens
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org
(fory-site) 01/01: Fix docs sidebar clipping on wide screens
Posted by ch...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch fix_website
in repository https://gitbox.apache.org/repos/asf/fory-site.git
commit a7e9824c3d51529fcd2fef5b8b3f961ad97f15e1
Author: chaokunyang <sh...@gmail.com>
AuthorDate: Sun Jun 14 13:27:25 2026 +0800
Fix docs sidebar clipping on wide screens
---
src/css/custom.css | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/css/custom.css b/src/css/custom.css
index 98d24b3830..117bfab0e0 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -179,11 +179,18 @@
--fory-doc-wide-width: 988px;
--fory-doc-gutter-width: 18px;
--fory-doc-sidebar-inset: 2rem;
+ --fory-doc-sidebar-panel-width: 300px;
+ --fory-doc-sidebar-offset: max(0px, calc((100vw - var(--fory-layout-width)) / 2));
--fory-doc-toc-right-inset: 1.5rem;
}
html:root {
- --doc-sidebar-width: 300px;
+ /*
+ * The menu is aligned with the centered navbar on wide screens. Keep the
+ * Docusaurus sidebar at least that wide, otherwise its overflow clipping
+ * hides the menu and the sidebar looks empty.
+ */
+ --doc-sidebar-width: calc(var(--fory-doc-sidebar-panel-width) + var(--fory-doc-sidebar-offset));
}
.theme-doc-breadcrumbs,
@@ -345,7 +352,7 @@ html:root {
@media (min-width: 997px) {
.theme-doc-sidebar-menu {
- padding-left: max(.75rem, calc((100vw - var(--fory-layout-width)) / 2));
+ padding-left: max(.75rem, var(--fory-doc-sidebar-offset));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org