From 7bb15b80a3c885c68d2c65a11381f25920bbf1ef Mon Sep 17 00:00:00 2001 From: Bin <106022674+ffgenius@users.noreply.github.com> Date: Tue, 3 Nov 2026 16:41:31 +0800 Subject: [PATCH] fix(docs): keep sponsor tiers within content width (#5149) --- .../.vitepress/theme/components/sponsor/SponsorTiers.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/.vitepress/theme/components/sponsor/SponsorTiers.vue b/docs/.vitepress/theme/components/sponsor/SponsorTiers.vue index da3f6b271..5cb7fc246 100644 --- a/docs/.vitepress/theme/components/sponsor/SponsorTiers.vue +++ b/docs/.vitepress/theme/components/sponsor/SponsorTiers.vue @@ -117,8 +117,6 @@ function scrollTrack(direction: 1 | -1) { .tiers { padding-top: 96px; padding-bottom: 48px; - /* The track bleeds to the right edge of the viewport. */ - overflow-x: clip; } .tiers-header { @@ -165,7 +163,6 @@ function scrollTrack(direction: 1 | -1) { .track-wrapper { position: relative; - margin-right: min(-24px, calc((1152px - 100vw) / 2)); } .track { @@ -178,12 +175,16 @@ function scrollTrack(direction: 1 | -1) { padding-bottom: 12px; padding-right: 24px; scroll-padding-right: 24px; - scrollbar-width: thin; + scrollbar-width: none; scroll-snap-align: center; scroll-padding-left: 24px; scroll-padding-right: 24px; } +.track::-webkit-scrollbar { + display: none; +} + .track:focus-visible { outline: 2px solid var(--vp-c-brand-1); outline-offset: 4px;