From 3057ebf73685c5bfdd545dd837e4597ba09246fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Jos=C3=A9=20Borba=20Fernandes?= Date: Wed, 25 Dec 2024 15:34:03 -0300 Subject: [PATCH 1/4] chore: reduce Searchbox button layout shift --- apps/site/components/Containers/NavBar/index.module.css | 5 +++++ apps/site/components/Containers/NavBar/index.tsx | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/site/components/Containers/NavBar/index.module.css b/apps/site/components/Containers/NavBar/index.module.css index e31532c14c759..4ef171d02499a 100644 --- a/apps/site/components/Containers/NavBar/index.module.css +++ b/apps/site/components/Containers/NavBar/index.module.css @@ -12,6 +12,11 @@ dark:bg-neutral-950; } +.searchWrapper { + @apply flex + flex-grow; +} + .nodeIconAndMobileItemsToggler { @apply flex h-16 diff --git a/apps/site/components/Containers/NavBar/index.tsx b/apps/site/components/Containers/NavBar/index.tsx index 5af65deddd09a..26e16d9fc84e6 100644 --- a/apps/site/components/Containers/NavBar/index.tsx +++ b/apps/site/components/Containers/NavBar/index.tsx @@ -71,7 +71,9 @@ const NavBar: FC = ({
- +
+ +
From 07c5a14f53a3e78145513977b8c6d91bb4570323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Jos=C3=A9=20Borba=20Fernandes?= Date: Thu, 2 Jan 2025 08:57:26 -0300 Subject: [PATCH 2/4] chore: allow classes to Skeleton component --- apps/site/components/Common/Skeleton/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/site/components/Common/Skeleton/index.tsx b/apps/site/components/Common/Skeleton/index.tsx index 640c1f2e3852d..3801f950e02b4 100644 --- a/apps/site/components/Common/Skeleton/index.tsx +++ b/apps/site/components/Common/Skeleton/index.tsx @@ -3,10 +3,11 @@ import { isValidElement } from 'react'; import styles from './index.module.css'; -type SkeletonProps = { hide?: boolean; loading?: boolean }; +type SkeletonProps = { hide?: boolean; loading?: boolean; className?: string }; const Skeleton: FC> = ({ children, + className, hide = false, loading = true, }) => { @@ -26,7 +27,7 @@ const Skeleton: FC> = ({
-
- -
+ From 115dfcef8ba7e951c13ec16af5921d0f60530cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Jos=C3=A9=20Borba=20Fernandes?= Date: Fri, 3 Jan 2025 16:46:02 -0300 Subject: [PATCH 4/4] chore: adjust placeholder for searchbox / load Open Sans for searchbox button --- apps/site/components/Common/Search/utils.ts | 3 +++ apps/site/components/Common/Skeleton/index.tsx | 3 ++- .../components/Containers/NavBar/index.module.css | 11 +++++++++-- apps/site/components/Containers/NavBar/index.tsx | 4 +++- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/apps/site/components/Common/Search/utils.ts b/apps/site/components/Common/Search/utils.ts index 429f47b3a7d58..fdab2c893008f 100644 --- a/apps/site/components/Common/Search/utils.ts +++ b/apps/site/components/Common/Search/utils.ts @@ -2,6 +2,9 @@ import tailwindConfig from '@/tailwind.config'; const colors = tailwindConfig.theme.colors; export const themeConfig = { + typography: { + '--font-primary': 'var(--font-open-sans)', + }, colors: { light: { '--text-color-primary': colors.neutral[900], diff --git a/apps/site/components/Common/Skeleton/index.tsx b/apps/site/components/Common/Skeleton/index.tsx index 3801f950e02b4..8b8d43753d608 100644 --- a/apps/site/components/Common/Skeleton/index.tsx +++ b/apps/site/components/Common/Skeleton/index.tsx @@ -1,3 +1,4 @@ +import classNames from 'classnames'; import type { FC, PropsWithChildren } from 'react'; import { isValidElement } from 'react'; @@ -27,7 +28,7 @@ const Skeleton: FC> = ({