Skip to content
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

画像のHTML要素のwidth, heightを固定長にしてるのを画像ファイル本来の大きさを継承するようにしたい #39

Open
0si43 opened this issue Oct 24, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@0si43
Copy link
Owner

0si43 commented Oct 24, 2021

  • 480 x 320で固定にした
<Image src={'/blogImages/' + block.id + '.png'} alt={caption} width={480} height={320}/>
@0si43 0si43 added the enhancement New feature or request label Oct 24, 2021
@0si43
Copy link
Owner Author

0si43 commented Aug 27, 2024

色々指定できそうだけど、パッと見だと何指定したらいいかよくわからなかった
とりあえず縦長画像に最適化したいので、横幅を60%で対応する
横長画像は若干小さくなるが、拡大して対応で……

https://nextjs.org/docs/pages/api-reference/components/image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant