Skip to content

Commit 07fb163

Browse files
committed
disable media sizing script on small screens
1 parent a13c5a6 commit 07fb163

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

assets/common.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ const forceLightMode = false;
113113
const maxWidthValue = computedStyle.getPropertyValue('max-width');
114114
const maxHeightValue = computedStyle.getPropertyValue('max-height');
115115

116+
if (maxWidthValue === '100%') return;
117+
116118
// Parse CSS values (handle clamp, calc, etc.)
117119
const tempDiv = document.createElement('div');
118120
tempDiv.style.width = maxWidthValue;

0 commit comments

Comments
 (0)