Hey - apologies for the newbie question, but I’m stuck and need some advice on the best way to achieve my desired layout.
The problem I have is with the sizing of the cards on my dashboard when used with my tablet. On the PC screen the gap at either side of the screen isn’t too bad, but on my tablet it looks quite pronounced and I would like to remove it by making the current cards fit the screen. I have tried with card-mod and CSS, but i’m struggling to get it anywhere near to what I want.
The back bars are what i’m looking to reduce:
This is my current code, any advice would be appreciated.
title: test
views:
- path: default_view
title: Home
background: >-
center / cover no-repeat fixed
url('https://w0.peakpx.com/wallpaper/334/304/HD-wallpaper-plain-sage-green-sage-green.jpg')
theme: noctis
subview: false
icon: mdi:sofa
badges: []
cards:
- square: false
type: grid
cards:
- type: media-control
entity: media_player.living_room
volume_controls:
- volume_buttons
- volume_set
- volume_mute
- type: custom:mini-media-player
entity: media_player.living_room
name: Volume
volume_stateless: false
group: false
toggle_power: true
source: icon
artwork: material
hide:
name: null
icon: true
info: t
power: true
source: true
mute: true
controls: true
sound_mode: full
replace_mute: next
info: scroll
scale: '1'
- show_current: true
show_forecast: true
type: weather-forecast
entity: weather.forecast_home
theme: noctis
name: Abbey Meads
- type: custom:hourly-weather
entity: weather.forecast_home_hourly
offset: '0'
label_spacing: '2'
icons: true
show_wind: speed
show_precipitation_amounts: false
show_precipitation_probability: true
name: Next Hour
theme: noctis
columns: 1
- square: true
type: grid
cards:
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: light.living_room
icon: mdi:bed-double-outline
name: Lounge
show_state: false
theme: noctis
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: light.office
name: Office
show_state: false
icon: mdi:email
theme: noctis
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: light.bedroom
name: Bedroom
icon: mdi:bed
theme: noctis
- square: false
type: grid
cards:
- type: custom:mushroom-light-card
entity: light.living_room
fill_container: true
name: Lounge
icon: mdi:brightness-4
show_brightness_control: true
primary_info: none
secondary_info: none
icon_type: none
collapsible_controls: true
layout: horizontal
- type: custom:mushroom-light-card
entity: light.office
fill_container: true
name: Lounge
icon: mdi:brightness-4
show_brightness_control: true
primary_info: none
secondary_info: none
icon_type: none
collapsible_controls: true
layout: horizontal
- type: custom:mushroom-light-card
entity: light.bedroom
fill_container: true
name: Lounge
icon: mdi:brightness-4
show_brightness_control: true
primary_info: none
secondary_info: none
icon_type: none
collapsible_controls: true
layout: horizontal
- type: grid
cards:
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: binary_sensor.garage_door
name: Garage Door
show_state: true
state_color: true
icon: mdi:garage-lock
theme: noctis
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: binary_sensor.garage_door
show_state: true
state_color: true
icon: mdi:door-sliding-lock
theme: noctis
name: Patio Door
- show_name: true
show_icon: true
type: button
tap_action:
action: toggle
entity: binary_sensor.garage_door
name: Side Door
show_state: true
state_color: true
icon: mdi:door-closed-lock
theme: noctis
kiosk_mode:
hide_header: true
'-users': displays
````Preformatted text`