Skip to content

Commit 51fb559

Browse files
committed
fix(lint): running lint fix
1 parent 8acfb31 commit 51fb559

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/components/modal/modal.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,6 @@ export class Modal implements ComponentInterface, OverlayInterface {
988988
this.resizeListener = () => {
989989
clearTimeout(this.resizeTimeout);
990990
this.resizeTimeout = setTimeout(() => {
991-
console.log('View transition triggered by resize');
992991
this.handleViewTransition();
993992
}, 50); // Debounce to avoid excessive calls during active resizing
994993
};
@@ -1109,7 +1108,9 @@ export class Modal implements ComponentInterface, OverlayInterface {
11091108
const isPortrait = window.innerWidth < 768;
11101109

11111110
if (isPortrait) {
1112-
const transformOffset = !CSS.supports('width', 'max(0px, 1px)') ? '30px' : 'max(30px, var(--ion-safe-area-top))';
1111+
const transformOffset = !CSS.supports('width', 'max(0px, 1px)')
1112+
? '30px'
1113+
: 'max(30px, var(--ion-safe-area-top))';
11131114
const scale = 0.915; // SwipeToCloseDefaults.MIN_PRESENTING_SCALE
11141115
presentingElement.style.transform = `translateY(${transformOffset}) scale(${scale})`;
11151116
} else {

0 commit comments

Comments
 (0)