fix(demos): bound format popover width and keep mobile trigger reachable
This commit is contained in:
@@ -91,15 +91,3 @@
|
||||
.hv-date-range-picker__popover .hv-calendar__nav-button-icon {
|
||||
@apply rotate-0;
|
||||
}
|
||||
|
||||
/* Vue/Reka adapter: the pinned source positions the popover itself with
|
||||
* `position: absolute` against the initial containing block, where a consumer's
|
||||
* `w-full` (e.g. the cn format-options demo) resolves to the viewport width.
|
||||
* Reka sizes its positioning wrapper to the content instead, so the same class
|
||||
* would collapse; map it to the identical viewport width so the anchor
|
||||
* placement, boundary clamping and content layout match the baseline.
|
||||
* `!important` is required to out-rank the `w-full` utility layer (same
|
||||
* layering constraint as the dropdown static-wrapper adapter). */
|
||||
.hv-date-range-picker__popover.w-full {
|
||||
width: 100vw !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user