#How to make 4.7-inch screen fullscreen panel view not scrollable?

1 messages · Page 1 of 1 (latest)

charred cliff
#

Greetings! I'm trying to setup a layout for my NSPanel Pro 120 dashboard consisting of 4 cards. I'm using layout-card trying to achieve that. Just set up everything with placeholder cards and noticed that there's still a little bit of room to scroll vertically. I am using the panel view and it seems like it should have been using only the screen space I've got. I could adjust row height accordingly, but knowing there's a space left will drive me crazy, so I'm desperate for help 🙂

Here's the yaml for my dashboard:

  non_admin_settings:
    hide_header: true
    hide_sidebar: true
views:
  - type: panel
    path: main
    title: Main
    subview: true
    theme: ios-dark-mode-blue-red
    cards:
      - type: custom:layout-card
        layout_type: grid
        layout:
          grid-template-columns: 30% 70%
          grid-template-rows: 50% 50%
          grid-template-areas: |
            "button-power weather"
            "button-camera todo"
          justify-items: stretch
        cards:
          - show_name: false
            show_icon: true
            type: button
            icon: mdi:power
            view_layout:
              grid-area: button-power
          - show_name: false
            show_icon: true
            type: button
            icon: mdi:camera
            view_layout:
              grid-area: button-camera
          - show_name: false
            show_icon: true
            type: button
            entity: switch.reolinkdoorbell_infrared_lights_in_night_mode
            view_layout:
              grid-area: todo
          - show_current: true
            show_forecast: true
            type: weather-forecast
            entity: weather.yandex_pogoda
            forecast_type: hourly
            view_layout:
              grid-area: weather

Thanks in advance!

ancient kindle
#

Does it also move if you use 4 buttons instead of 3 plus the weather forecast? If not the weather card is causing the problem.

charred cliff
#

Yeah, same behaviour. I have a feeling it's caused by kiosk_mode somehow, but turning top- and sidebars back on obviously makes it all even worse

#

Oh, just noticed that weather card takes more space than it should have. Unfortunately not the case with scrolling the whole view