MCPcopy Create free account
hub / github.com/debpalash/VoiceStudio / responsiveShellWidth

Function responsiveShellWidth

frontend/src/utils/uiScaleEngine.js:14–17  ·  view source on GitHub ↗
(shellWidth, scale, engine)

Source from the content-addressed store, hash-verified

12 * CSS and must not be divided a second time.
13 */
14export function responsiveShellWidth(shellWidth, scale, engine) {
15 const safeScale = Number.isFinite(scale) && scale > 0 ? scale : 1;
16 return engine === 'native' ? shellWidth / safeScale : shellWidth;
17}
18
19/**
20 * @param {number} scale

Callers 2

useResponsiveShellSizeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected