Skip to content

Commit

Permalink
Merge pull request #1612 from adevinta/1611-component-popover-max-wid…
Browse files Browse the repository at this point in the history
…th-on-smaller-screens

fix(popover): adapt popover width on smaller screens
  • Loading branch information
Powerplex authored Oct 30, 2023
2 parents be5b011 + 808271c commit b07874a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/components/popover/src/PopoverContent.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const styles = cva(
},
enforceBoundaries: {
true: ['max-w-[--radix-popper-available-width]'],
false: ['max-w-sz-384'],
false: ['max-w-[min(var(--sz-384),100vw)]'],
},
/**
* When there is a close button, padding to the right side must be adjusted to avoid content overlapping with it.
Expand Down

0 comments on commit b07874a

Please sign in to comment.