fix: fix the fluctuations in sidebar when we scroll main content (#13115)

* fix the fluctuations in sidebar when we scroll main content

* fix: reduced vertical padding instead of
TOP_BANNER_HEIGHT

---------

Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
Rahil AnsariandUdit Takkar authored and GitHub committed 2024-01-11 18:29:03 +00:00
1 parent 0eabb56f07
commit dfe03efc37
1 file changed
+1 -1
@@ -46,7 +46,7 @@ export function TopBanner(props: TopBannerProps) {
"flex w-full items-start justify-between gap-8 px-4 py-2 text-center lg:items-center",
variantClassName[variant]
)}>
<div className="flex flex-1 flex-col items-start justify-center gap-2 p-1 lg:flex-row lg:items-center">
<div className="flex flex-1 flex-col items-start justify-center gap-2 px-1 py-0.5 lg:flex-row lg:items-center">
<p className="text-emphasis flex flex-col items-start justify-center gap-2 text-left font-sans text-sm font-medium leading-4 lg:flex-row lg:items-center">
{Icon ? <Icon data-testid="variant-default" {...defaultIconProps} /> : defaultIcon}
{text}