Skip to content

Commit 4670739

Browse files
committed
chore: fix select styles
1 parent 93bbe70 commit 4670739

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

apps/site/components/Common/Select/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,12 @@ const Select: FC<SelectProps> = ({
120120
</SelectPrimitive.Trigger>
121121

122122
<SelectPrimitive.Portal>
123-
<SelectPrimitive.Content className={classNames(styles.dropdown)}>
123+
<SelectPrimitive.Content
124+
position={inline ? 'popper' : 'item-aligned'}
125+
className={classNames(styles.dropdown, {
126+
[styles.inline]: inline,
127+
})}
128+
>
124129
<ScrollPrimitive.Root type="auto">
125130
<SelectPrimitive.Viewport>
126131
<ScrollPrimitive.Viewport>

apps/site/next.constants.mjs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,19 @@ export const IS_DEV_ENV = process.env.NODE_ENV === 'development';
1010
*
1111
* Can be used for conditionally enabling features that we know are Vercel only
1212
*
13-
* @see https://vercel.com/docs/concepts/projects/environment-variables/system-environment-variables#framework-environment-variables
13+
* @see https://vercel.com/docs/projects/environment-variables/system-environment-variables#VERCEL_ENV
1414
*/
1515
export const VERCEL_ENV = process.env.VERCEL_ENV || undefined;
1616

17+
/**
18+
* This is used for telling Next.js if we are current during build time or in runtime environment
19+
*
20+
* Can be used for conditionally enabling features that we know are Vercel only
21+
*
22+
* @see https://vercel.com/docs/projects/environment-variables/system-environment-variables#VERCEL_REGION
23+
*/
24+
export const VERCEL_REGION = process.env.VERCEL_REGION || undefined;
25+
1726
/**
1827
* This is used for telling Next.js to do a Static Export Build of the Website
1928
*

0 commit comments

Comments
 (0)