Skip to content

Commit

Permalink
Fix: select box overflow on download pages (nodejs#7119)
Browse files Browse the repository at this point in the history
fix: download page select overflow
  • Loading branch information
canerakdas authored Oct 12, 2024
1 parent 3c0635c commit 3da97a1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/site/components/Downloads/Release/BitnessDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const BitnessDropdown: FC = () => {
ariaLabel={t('layouts.download.dropdown.bitness')}
defaultValue={String(bitness)}
onChange={bitness => setBitness(parseNumericBitness(bitness))}
className="w-28"
className="min-w-28"
inline={true}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const OperatingSystemDropdown: FC<OperatingSystemDropdownProps> = ({
ariaLabel={t('layouts.download.dropdown.os')}
defaultValue={os}
onChange={value => setOS(value as UserOS)}
className="w-[8.5rem]"
className="min-w-[8.5rem]"
inline={true}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const PlatformDropdown: FC = () => {
ariaLabel={t('layouts.download.dropdown.platform')}
defaultValue={platform}
onChange={platform => setPlatform(platform as PackageManager)}
className="w-28"
className="min-w-28"
inline={true}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion apps/site/components/Downloads/Release/VersionDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const VersionDropdown: FC = () => {
}))}
defaultValue={release.versionWithPrefix}
onChange={setVersion}
className="w-40"
className="min-w-40"
inline={true}
/>
);
Expand Down

0 comments on commit 3da97a1

Please sign in to comment.