fix(demos): bound format popover width and keep mobile trigger reachable

This commit is contained in:
maoyingjie
2026-10-28 17:49:49 +08:00
parent 1029444a98
commit 462044c3b8
4 changed files with 7 additions and 20 deletions
@@ -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;
}