Skip to content

Commit 8718367

Browse files
authored
Merge pull request #157 from GoCon/improve/job-board
💄 Safariでジョブボードの表示が崩れる問題を修正
2 parents f2f3dff + e6f18b8 commit 8718367

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/JobBoardCard.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ const { src, alt, width, height, link } = Astro.props;
4646
grid-template-columns: 1fr; /* 1200px以下なら1列 */
4747
width: unset;
4848
height: unset;
49-
max-width: 1120px;
50-
max-height: 560px;
5149
aspect-ratio: 2 / 1;
50+
/* grid内のaspect-ratioを指定するとSafariではうまくサイズ計算できない不具合への対策 */
51+
min-width: 0;
52+
min-height: 0;
5253
}
5354
}
5455
</style>

0 commit comments

Comments
 (0)