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

shortcode figure の width が効かない #100

Open
negset opened this issue Dec 3, 2019 · 5 comments
Open

shortcode figure の width が効かない #100

negset opened this issue Dec 3, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@negset
Copy link
Member

negset commented Dec 3, 2019

shortcode figure で画像を表示したとき,width 属性が反映されない不具合.

{{< figure src="hoge.png" width="300" height="200" >}}
@negset negset added the bug Something isn't working label Dec 3, 2019
@KaiseiYokoyama
Copy link
Collaborator

hugo v0.58.3 の手元の環境では動作してるね
スクリーンショット 2019-12-03 12 04 39
hugoのバージョンは?

@negset
Copy link
Member Author

negset commented Dec 3, 2019

Hugo Static Site Generator v0.58.3-4AAC02D4 windows/amd64 BuildDate: 2019-09-19T15:29:19Z

それ width 反映されてるの?
(その画像だけだと判定できない)

@KaiseiYokoyama
Copy link
Collaborator

上が普通のmarkdown, 下は{{< figure src="/images/sohosai2019/IMG_7864.JPG" width="200" >}}

スクリーンショット 2019-12-03 12 43 55

小さくなってるけど横幅200ではないか……

スクリーンショット 2019-12-03 12 45 53

anankeの仕様が原因っぽい?

@negset
Copy link
Member Author

negset commented Dec 3, 2019

それは単に figure タグの margin が効いてるだけですね...

nested-img というクラスが悪さしてるみたいだけど,これ必要?

@KaiseiYokoyama
Copy link
Collaborator

いらない……と思われる

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants