forked from CyberAgentHack/web-speed-hackathon-2021
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
アスペクト比はCSSでやる #17
Comments
Closed
shun91
added a commit
that referenced
this issue
Dec 11, 2021
該当部分はアスペクト比の計算ロジックっぽいけど、これってCSSだけでうまいことできなかったっけ? |
これでいけそう CSS aspect-ratioプロパティの使い方、レスポンシブやレイアウトシフトで大活躍 | コリス |
誤差かもしれないけどsetImmediateの方が少しスコアがよかった ただ、本来的には #17 (comment) の対応をしたほうが良さそう |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/shun91/web-speed-hackathon-2021/blob/main/client/src/components/foundation/AspectRatioBox/AspectRatioBox.jsx#L25
The text was updated successfully, but these errors were encountered: