Skip to content

Commit ae6609c

Browse files
committed
Enhance webflo elements
1 parent 3af1d9f commit ae6609c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/webflo-runtime/webflo-client/webflo-elements.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,19 +1074,23 @@ export class ModalElement extends BaseElement {
10741074
10751075
/* ----------- swipe-dismiss ----------- */
10761076
1077-
:host(:not(._horz)) {
1077+
:host(:not(._swipe-dismiss)) {
1078+
--swipe-dismiss-length: 0px;
1079+
}
1080+
1081+
:host(._swipe-dismiss:not(._horz)) {
10781082
--swipe-dismiss-length: var(--modal-swipe-dismiss-length, calc(var(--view-height) - var(--minmax-length)));
10791083
}
10801084
1081-
:host(._horz) {
1085+
:host(._swipe-dismiss._horz) {
10821086
--swipe-dismiss-length: var(--modal-swipe-dismiss-length, calc(var(--view-width) - var(--minmax-length)));
10831087
}
10841088
1085-
:host(:not(._top:not(._horz), ._left._horz)) {
1089+
:host(._swipe-dismiss:not(._top:not(._horz), ._left._horz)) {
10861090
--swipe-dismiss-progress-range: 0% var(--swipe-dismiss-length);
10871091
}
10881092
1089-
:host(:is(._top:not(._horz), ._left._horz)) {
1093+
:host(._swipe-dismiss:is(._top:not(._horz), ._left._horz)) {
10901094
--swipe-dismiss-progress-range:
10911095
calc(100% - var(--swipe-dismiss-length))
10921096
100%;

0 commit comments

Comments
 (0)