Skip to content

Commit 9f69683

Browse files
refactor: added a max-inline-size according to the viewport size (#4640)
* refactor: added a max-inline-size according to the viewport size * refactor: cleanup * auto update snapshots (#4642) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 08f5c46 commit 9f69683

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
0 Bytes
Loading

packages/components/src/styles/internal/_popover-component.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@ $popover-gap-inset: calc(-1 * #{$popover-gap-size});
236236
z-index: 1337;
237237
// revert this if popover is included in button
238238
white-space: normal;
239-
max-inline-size: variables.$db-container-xs;
239+
max-inline-size: min(
240+
#{variables.$db-container-xs},
241+
calc(100vw - 2 * #{variables.$db-spacing-fixed-md})
242+
);
240243
block-size: fit-content;
241244
inline-size: fit-content;
242245

0 commit comments

Comments
 (0)