Repos / s4g / def5ac5363
commit def5ac5363a92dd8a4aad60b05205fca03958195
Author: Nhân <hi@imnhan.com>
Date: Wed Aug 23 21:47:51 2023 +0700
always show vertical scrollbar
diff --git a/docs/_s4g/theme/base.css b/docs/_s4g/theme/base.css
index 53a5d64..c10cd1f 100644
--- a/docs/_s4g/theme/base.css
+++ b/docs/_s4g/theme/base.css
@@ -3,6 +3,9 @@ html {
font-size: 1em;
max-width: 50rem;
margin: auto;
+ /* Always show scrollbar, to prevent content shifting when navigating
+ * between long and short pages: */
+ overflow-y: scroll;
}
p,
diff --git a/theme/base.css b/theme/base.css
index 53a5d64..c10cd1f 100644
--- a/theme/base.css
+++ b/theme/base.css
@@ -3,6 +3,9 @@ html {
font-size: 1em;
max-width: 50rem;
margin: auto;
+ /* Always show scrollbar, to prevent content shifting when navigating
+ * between long and short pages: */
+ overflow-y: scroll;
}
p,