From 9f5f848cdeebf4f8d2d96d3e6390655d4f1dd6ac Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 3 Sep 2024 15:56:32 -0500 Subject: [PATCH] Website: add fixed width to Github stars button in website navigation (#21783) Closes: #21469 Changes: - Updated the styles for the GitHub stars button in the websites desktop header navigation to prevent layout shifts when navigating between pages. --- website/assets/styles/layout.less | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/assets/styles/layout.less b/website/assets/styles/layout.less index 94e56945a8..6eefec24a9 100644 --- a/website/assets/styles/layout.less +++ b/website/assets/styles/layout.less @@ -444,8 +444,9 @@ html, body { } } [purpose='gh-button'] { - margin-left: 20px; - margin-right: 20px; + padding: 0px 20px; + min-width: 140px; + width: 140px; } [purpose='header-dropdown'] { box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.4);