Skip to content

Commit e10abc9

Browse files
committed
Fix: return value (add clamps)
1 parent b8bfd49 commit e10abc9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ module.exports = plugin(
5353
: 'rem';
5454
const ftMin = sFtMin * Math.pow(sFtRMin, value);
5555
const ftMax = sFtMax * Math.pow(sFtRMax, value);
56-
return `clamp(${ftMin}${sFtUnit},
57-
calc(${ftMin}${sFtUnit} + (${ftMax} - ${ftMin}) * ((100vw - ${sFtSMin}${sFtUnit}) / (${sFtSMax} - ${sFtSMin}))),
58-
${ftMax}${sFtUnit})`;
56+
return `clamp(${ftMin}${sFtUnit}, calc(${ftMin}${sFtUnit} + ((${ftMax} - ${ftMin}) * ((100vw - ${sFtSMin}${sFtUnit}) / (${sFtSMax} - ${sFtSMin})))), ${ftMax}${sFtUnit})`;
5957
}
6058
return value;
6159
};

0 commit comments

Comments
 (0)