Skip to content

Commit b774c31

Browse files
committed
feat: ensure market dropdown selector is in line with max width of app container, add roundedness
1 parent fd8a7ef commit b774c31

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/views/MarketsDropdown.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ export const MarketsDropdown = memo(
333333
noBlur
334334
onOpenChange={setIsOpen}
335335
sideOffset={1}
336+
align="start"
336337
slotTrigger={
337338
<>
338339
{triggerBackground}
@@ -412,10 +413,12 @@ const $Popover = styled(Popover)`
412413
413414
width: var(--marketsDropdown-openWidth);
414415
415-
max-width: 100vw;
416+
/* Constrain to app container max-width instead of viewport width */
417+
/* Ensure popover respects the app container's max-width (1800px for trade pages) */
418+
max-width: min(100vw, 1800px);
416419
417420
box-shadow: 0 5px 15px 3px rgba(0, 0, 0, 0.2);
418-
border-radius: 0;
421+
border-radius: 0.75rem;
419422
420423
&:focus-visible {
421424
outline: none;

0 commit comments

Comments
 (0)