Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriha-chan committed Jun 3, 2023
1 parent 6a29e01 commit 9c7885c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const observer = new ResizeObserver((entries) => {
const container = content.parentElement as HTMLSpanElement;
const contentWidth = content.getBoundingClientRect().width;
const containerWidth = container.getBoundingClientRect().width;
results.push({container, minScale: props.minScale, containerWidth, contentWidth});
results.push({ container, minScale: props.minScale, containerWidth, contentWidth });
}
for (const result of results) {
result.container.style.transform = `scaleX(${Math.max(result.minScale, Math.min(1, result.containerWidth / result.contentWidth))})`;
Expand Down

0 comments on commit 9c7885c

Please sign in to comment.