Hi Guys,
I am trouble because I don’t understand what is wrong im my config. I would like to make a nice tablet view, but the colums withd doesn’t fit width my tablet screen but with the same resolution, it fit with the PC screen.
Could you please help me where I made a mistake?
here is the PC screen:
and here my tablet screen:
The two floorplan had a little different screen size but it doesn’t metter.
Here is my config
views:
- type: custom:grid-layout
path: home
background: center / cover no-repeat fixed url("/local/blur_background.jpg")
theme: noctis
layout:
#default
margin: 0
grid-gap: 15px
grid-template-columns: 300px repeat(4, 1fr) 0fr
grid-template-rows: 15px repeat(4, fit-content(100%)) 55px
grid-template-areas: |
"sidebar almenu menu alap alap ."
"sidebar almenu menu alap alap ."
"sidebar media menu alap alap ."
"footer_people footer footer footer footer ."
mediaquery:
#phone
"(max-width: 800px)":
grid-gap: 40px
grid-template-columns: auto
grid-template-rows: auto
grid-template-areas: |
"menu"
"footer_people"
"alap"
"sidebar"
"media"
"almenu"
"footer"
#tablet
"(max-width: 1200px)":
grid-gap: 5px
grid-template-columns: 250px repeat(4, 1fr) 0fr
grid-template-rows: 30px repeat(4, min-content) 45px auto
grid-template-areas: |
"sidebar almenu menu alap alap ."
"sidebar almenu menu alap alap ."
"sidebar media menu alap alap ."
"footer_people footer footer footer footer ."
Thank you very much for you help.