shou2017.com
JP

I made rails responsive, but the smartphone screen is too small.

Tue Aug 29, 2017
Tue Aug 29, 2017

I have a problem that the screen is too small when I look at it on a smartphone, even though I have made it responsive with bootstrap gem etc…

In fact, I would like to make it like this,

rails レスポンシブ対応にしたのにスマホ画面が小さい"

It’s like this.

rails レスポンシブ対応にしたのにスマホ画面が小さい"

In these cases, you usually forget <meta name=“viewport” content=“width=device-width, initial-scale=1”>.

Just put <meta name=“viewport” content=“width=device-width, initial-scale=1”> in the head part of views/layouts/application.html.erb.

See Also