fix: minor syntax tweak
This commit is contained in:
parent
6ff6ff1673
commit
b93dcc43ad
@ -87,7 +87,7 @@ export function setAspectRatio(input) {
|
||||
}
|
||||
|
||||
const [x, y] = ratio;
|
||||
const useNative = window.CSS ? window.CSS.supports(`aspect-ratio: ${x} / ${y}`) : false;
|
||||
const useNative = window.CSS ? window.CSS.supports(`aspect-ratio: ${x}/${y}`) : false;
|
||||
const padding = (100 / x) * y;
|
||||
|
||||
if (useNative) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user