profile
viewpoint
KOBAYASHI Daigo daigok Loquat Inc. Tokyo

daigok/hobbies 0

Keeping track of your hobbies

daigok/kamonohashi 0

AI開発プラットフォームKAMONOHASHI

issue commentgatsbyjs/gatsby

[gatsby-image] Difference in styles between develop and build packages versions

@Js-Brecht

@daigok Is the image height dependent on the size of the screen?

Yes.

Probably the best way with either method to have a container that will be sized correctly, and in a method compatible with SSR, is to use CSS. You can add CSS classes to the container by using the className prop. That way you can use media queries.

Now I've switched to use fluid with className, then it worked! I thought if I have different size of images(art direction), then I need to use fixed image.

Thank you for your support.

gitowiec

comment created time in 2 months

issue commentgatsbyjs/gatsby

[gatsby-image] Difference in styles between develop and build packages versions

I'm also facing the same issue.

Is it possible to automatically update the "height: image.height" on a div tag when a user access a page? If I resize the window size, it is automatically updated. But for the first time, it always picks the first image size out of the image list.

It is quite hard to set an image width/height to the tag. Because gatsby image uses a style property, so the priority is maximum. If I set like <Img fixed={images} style={{ width: "100%", height: "570px" }} /> it works but it's inflexible. I can't use media query here.

Any thoughts?

gitowiec

comment created time in 2 months

fork daigok/hobbies

Keeping track of your hobbies

https://ik-hobbies.herokuapp.com

fork in 3 months

issue closedtiangolo/fastapi

[FEATURE]Do not want to include None attributes to JSON.

Is your feature request related to a problem? Please describe. Not related to a problem.

Describe the solution you'd like I do not want to include None attributes to JSON result. FastAPI has an include_none option on jsonable_encoder method. However, there is no way to set this option False.

Describe alternatives you've considered Manually uses jsonable_encoder with include_none=True.

Additional context If FastAPI provides a way to globally configure json encoder. It would be handy.

closed time in 3 months

daigok

issue commenttiangolo/fastapi

[FEATURE]Do not want to include None attributes to JSON.

@tiangolo Thank you. Please close the issue.

daigok

comment created time in 3 months

more