From 7a562a50c928e1ab8946bf9c226241faac858eaf Mon Sep 17 00:00:00 2001 From: Caner Akdas Date: Sat, 28 Dec 2024 21:05:12 +0300 Subject: [PATCH 1/5] chore: mobile layout and skeleton sizes --- .../components/Downloads/Release/BlogPostLink.tsx | 6 ++---- .../Downloads/Release/PlatformDropdown.tsx | 2 +- .../Downloads/Release/PrebuiltDownloadButtons.tsx | 14 +++++++++++--- .../Downloads/Release/ReleaseCodeBox.tsx | 2 +- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/apps/site/components/Downloads/Release/BlogPostLink.tsx b/apps/site/components/Downloads/Release/BlogPostLink.tsx index d9d1f90d60aad..3082da9c3c5c8 100644 --- a/apps/site/components/Downloads/Release/BlogPostLink.tsx +++ b/apps/site/components/Downloads/Release/BlogPostLink.tsx @@ -3,16 +3,14 @@ import type { FC, PropsWithChildren } from 'react'; import { useContext } from 'react'; -import LinkWithArrow from '@/components/Downloads/Release/LinkWithArrow'; +import Link from '@/components/Link'; import { ReleaseContext } from '@/providers/releaseProvider'; const BlogPostLink: FC = ({ children }) => { const { release } = useContext(ReleaseContext); const version = release.versionWithPrefix; - return ( - {children} - ); + return {children}; }; export default BlogPostLink; diff --git a/apps/site/components/Downloads/Release/PlatformDropdown.tsx b/apps/site/components/Downloads/Release/PlatformDropdown.tsx index 6acb57beb0872..696ecb6076f1e 100644 --- a/apps/site/components/Downloads/Release/PlatformDropdown.tsx +++ b/apps/site/components/Downloads/Release/PlatformDropdown.tsx @@ -64,7 +64,7 @@ const PlatformDropdown: FC = () => { placeholder={t('layouts.download.dropdown.unknown')} ariaLabel={t('layouts.download.dropdown.installMethod')} onChange={platform => platform && release.setPlatform(platform)} - className="min-w-20" + className="min-w-28" inline={true} /> ); diff --git a/apps/site/components/Downloads/Release/PrebuiltDownloadButtons.tsx b/apps/site/components/Downloads/Release/PrebuiltDownloadButtons.tsx index 8be309c5f46da..e7ca0d7958833 100644 --- a/apps/site/components/Downloads/Release/PrebuiltDownloadButtons.tsx +++ b/apps/site/components/Downloads/Release/PrebuiltDownloadButtons.tsx @@ -30,12 +30,16 @@ const PrebuiltDownloadButtons: FC = () => { : ''; return ( -
+
-