"Sections" dashboard not taking full length?

Hi there,

Using a standard “Sections” type dashboard for my mower, I see 2 columns but they do not take the full width as you can see (I’d like to use the space on the left of the History cards to have them widder).

any clue how to solve this ?
Why a 2 columns is not taking full width ?

Here is a picture and my code :

kiosk_mode:
  admin_settings:
    hide_header: false
    hide_sidebar: false
  user_settings:
    - users:
        - alessio
        - flavia
        - inès
      hide_sidebar: false
    - users:
        - wallpanel
      kiosk: true
views:
  - type: sections
    title: Tondeuse
    sections:
      - type: grid
        cards:
          - type: history-graph
            entities:
              - entity: sensor.s_batterie
              - entity: sensor.s_erreur
              - entity: binary_sensor.s_en_charge
              - entity: sensor.s_puissance_du_signal
              - entity: switch.s_mode_festif
            hours_to_show: 36
            card_mod:
              style: |
                ha-card {
                  background-color: rgba(255, 255, 255, 0.4);
                }
      - type: grid
        cards:
          - type: custom:mushroom-entity-card
            entity: sensor.s_batterie
            fill_container: false
            name: Pourcentage batterie
            card_mod:
              style: |
                ha-card {
                  background-color: rgba(255, 255, 255, 0.2);
                }
          - type: custom:mushroom-entity-card
            entity: sensor.s_prochain_depart_programme
            name: Prochaine tonte
            card_mod:
              style: |
                ha-card {
                  background-color: rgba(255, 255, 255, 0.2);
                }
          - type: custom:mushroom-entity-card
            entity: binary_sensor.s_en_charge
            fill_container: false
            name: Etat batterie
            card_mod:
              style: |
                ha-card {
                  background-color: rgba(255, 255, 255, 0.2);
                }
          - type: custom:mushroom-entity-card
            entity: sensor.s_distance_totale_parcourue
            name: Distance totale parcourue
            card_mod:
              style: |
                ha-card {
                  background-color: rgba(255, 255, 255, 0.2);
                }
          - type: custom:mushroom-entity-card
            entity: sensor.s_temperature_de_la_batterie
            fill_container: false
            name: Température batterie
            card_mod:
              style: |
                ha-card {
                  background-color: rgba(255, 255, 255, 0.2);
                }
          - type: heading
            icon: ''
            heading_style: title
          - type: tile
            grid_options:
              columns: 12
              rows: 1
            entity: lawn_mower.s_2
            name: Etat de Worx Tondeuse
            show_entity_picture: false
            hide_state: false
            state_content: state
            vertical: false
            tap_action:
              action: none
            icon_tap_action:
              action: none
            features_position: bottom
            card_mod:
              style: |
                ha-card {
                  background-color: rgba(255, 255, 255, 0.4);
                }
          - type: custom:mushroom-template-card
            primary: Tondre
            secondary: ''
            icon: mdi:play-circle-outline
            entity: lawn_mower.s
            tap_action:
              action: perform-action
              perform_action: lawn_mower.start_mowing
              target:
                entity_id: lawn_mower.s
              data: {}
            fill_container: false
            multiline_secondary: false
            hold_action:
              action: none
            double_tap_action:
              action: none
            icon_color: |-
              {% if is_state('lawn_mower.s', 'docked') %}
                green
              {% else %}
                black
              {% endif %}
            grid_options:
              columns: 4
              rows: 1
            card_mod:
              style: |
                ha-card {
                  background-color: rgba(255, 255, 255, 0.4);
                }
          - type: custom:mushroom-template-card
            primary: Pause
            secondary: ''
            icon: mdi:pause-circle-outline
            entity: lawn_mower.s
            tap_action:
              action: perform-action
              perform_action: lawn_mower.pause
              target:
                entity_id: lawn_mower.s
              data: {}
            fill_container: false
            multiline_secondary: false
            hold_action:
              action: none
            double_tap_action:
              action: none
            icon_color: |-
              {% if is_state('lawn_mower.s', 'docked') %}
                black
              {% else %}
                green
              {% endif %}
            grid_options:
              columns: 4
              rows: 1
            card_mod:
              style: |
                ha-card {
                  background-color: rgba(255, 255, 255, 0.4);
                }
          - type: custom:mushroom-template-card
            primary: Rentrer
            secondary: ''
            icon: mdi:home-import-outline
            entity: lawn_mower.s
            tap_action:
              action: perform-action
              perform_action: lawn_mower.dock
              target:
                entity_id: lawn_mower.s
            fill_container: false
            multiline_secondary: false
            hold_action:
              action: none
            double_tap_action:
              action: none
            icon_color: |-
              {% if is_state('lawn_mower.s', 'docked') %}
                black
              {% else %}
                green
              {% endif %}
            grid_options:
              columns: 4
              rows: 1
            card_mod:
              style: |
                ha-card {
                  background-color: rgba(255, 255, 255, 0.4);
                }
          - type: custom:mushroom-entity-card
            entity: switch.s_mode_festif
            fill_container: false
            tap_action:
              action: toggle
            grid_options:
              columns: 12
              rows: 1
            icon_color: |-
              {% if is_state('switch.s_mode_festif', 'on') %}
                yellow
              {% else %}
                black
              {% endif %}
            card_mod:
              style: |
                ha-card {
                  background-color: rgba(255, 255, 255, 0.4);
                }
          - type: picture
            image: /api/image/serve/ed8305eea1730ec6decc142bed1d819d/512x512
            card_mod:
              style: |
                ha-card {
                  background: transparent;
                  border: 0px;
                }
    background:
      opacity: 81
      alignment: center
      size: cover
      repeat: repeat
      attachment: fixed
      image: /api/image/serve/2d9ab92f0e1c433b1c7201eee99e1244/original
    cards: []
    header:
      layout: center
      badges_position: bottom
      badges_wrap: wrap
    max_columns: 2
    badges:
      - type: custom:mushroom-chips-card
        chips:
          - type: entity
            entity: person.delecole
            tap_action:
              action: navigate
              navigation_path: /lenovo-m10-plus-home/0
            name: Home
            content_info: name
            icon: mdi:home
            use_entity_picture: false
            icon_color: blue

Many Thanks !!

Columns have a max width of 500px. Can be set in theme by var ha-view-sections-column-max-width

I think you can’t do this with sections. All cards in this view have maximum width set by developers and can only be made narrower. If you want to have some more granular control over cards width, go for grid view or panel view with layout card to define uneven split of width between columns.

Thanks a lot @mirekmal … I also tried to use the layout card (I am also used to use for other dashboards as I have a wall tablet with obviously fixed width / height), but no success neither in the sense that I can not re-dimension the history cards to “stretch” in width and reduce their height, see the post I have made here : https://community.home-assistant.io/t/layout-card-take-control-of-where-your-cards-end-up/147805/932

If you might help in that topic related to the Layout-card … many Thanks !

From what I see you created grid like that:

but you want to have layout like:

So you reserved area r2-2 for no use…
Your grid definition should be:

    layout:
      grid-template-columns: 920px  420px
      grid-template-rows: 65px 65px 65px 65px 65px 65px 65px 65px 65px 65px 65px
      grid-template-areas: |
        "r1-1 r1-1"
        "r2-1 r2-3"
        "r2-1 r3-3"
        "r2-1 r4-3"
        "r2-1 r5-3"
        "r2-1 r6-3"
        "r2-1 r7-3"
        "r2-1 r8-3"
        "r2-1 r9-3"
        "r2-1 r10-3"
        "r2-1 r11-3"
        "r2-1 r12-3"

BTW, do you really need so many rows? from screenshot on the other post it looks that you have only 3 cards in the second row (the very first one is empty, at least on screenshot). So I’d do this:this way:

    layout:
      grid-template-columns: 920px  420px
      grid-template-rows: 65px 130px 65px 65px 130px
      grid-template-areas: |
        "r1-1 r1-1"
        "r2-1 r2-2"
        "r3-1 r2-2"
        "r3-1 r3-2"
        "r4-1 r3-2"

Which should give you following grid:

@mirekmal thanks a lot for the reply, but as it concerns the grid-layout, can you please cut / past your comment in the link I posted in last post (https://community.home-assistant.io/t/layout-card-take-control-of-where-your-cards-end-up/147805/932) ?

I will rely from there.
thanks again for your help