Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +1 -1
templates/index.html
CHANGED
@@ -30,7 +30,7 @@
|
|
30 |
const flashcardWidth = flashcard.offsetWidth;
|
31 |
|
32 |
// スケールを計算して適用
|
33 |
-
const scale = windowWidth / flashcardWidth;
|
34 |
flashcard.style.transform = `scale(${scale})`;
|
35 |
}
|
36 |
|
|
|
30 |
const flashcardWidth = flashcard.offsetWidth;
|
31 |
|
32 |
// スケールを計算して適用
|
33 |
+
const scale = windowWidth / flashcardWidth-0.2;
|
34 |
flashcard.style.transform = `scale(${scale})`;
|
35 |
}
|
36 |
|