summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Russell2023-06-07 08:33:51 -0500
committerGitHub2023-06-07 15:33:51 +0200
commitcb18eef4fda8227a6c5ec73589526dd7fbb8f4a6 (patch)
tree4f7ebb0312a310525b44143ec7c5d2383671dc5c
parent4f666ba4fad7118a31bae819eb6be068da9e4d94 (diff)
downloadIT.starlight-cb18eef4fda8227a6c5ec73589526dd7fbb8f4a6.tar.gz
IT.starlight-cb18eef4fda8227a6c5ec73589526dd7fbb8f4a6.tar.bz2
IT.starlight-cb18eef4fda8227a6c5ec73589526dd7fbb8f4a6.zip
Fix bottom padding on left sidebar (#168)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
-rw-r--r--.changeset/odd-boxes-warn.md5
-rw-r--r--packages/starlight/components/Sidebar.astro4
2 files changed, 9 insertions, 0 deletions
diff --git a/.changeset/odd-boxes-warn.md b/.changeset/odd-boxes-warn.md
new file mode 100644
index 00000000..c82de5e9
--- /dev/null
+++ b/.changeset/odd-boxes-warn.md
@@ -0,0 +1,5 @@
+---
+"@astrojs/starlight": patch
+---
+
+Fix bottom padding on left sidebar
diff --git a/packages/starlight/components/Sidebar.astro b/packages/starlight/components/Sidebar.astro
index 4bb4b53c..dd318701 100644
--- a/packages/starlight/components/Sidebar.astro
+++ b/packages/starlight/components/Sidebar.astro
@@ -28,6 +28,10 @@ const { sidebar, locale } = Astro.props;
gap: 1rem;
}
+ .sidebar > :global(:last-child) {
+ padding-bottom: 1rem;
+ }
+
.mobile-preferences {
justify-content: space-between;
border-top: 1px solid var(--sl-color-gray-6);