-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restriction Card does not fill row #117
Comments
Retest w/o card-mod which is a separate plugin and not discussed here. |
@ildar170975 |
@gthbusrr |
@gthbusrr If this is about a grid with square cells:
then I agree - there is an issue, a card does not fill a whole cell: Can be fixed by card-mod:
|
You have plenty of custom cards/plugins unrelated to the restriction-card. |
@ildar170975 type: grid
cards:
- type: custom:restriction-card
card:
type: tile
entity: automation.leave_home
vertical: true
hide_state: true
show_entity_picture: false
layout_options:
grid_columns: 2
grid_rows: 2
- type: custom:restriction-card
card:
type: tile
entity: automation.arrived_home
vertical: true
hide_state: true
show_entity_picture: false
layout_options:
grid_columns: 2
grid_rows: 2
- type: custom:restriction-card
card:
type: tile
entity: automation.door_opened
vertical: true
hide_state: true
show_entity_picture: false
layout_options:
grid_columns: 2
grid_rows: 2
- type: custom:restriction-card
card:
type: tile
entity: automation.front_door_lock_notification
vertical: true
hide_state: true
show_entity_picture: false
layout_options:
grid_columns: 2
grid_rows: 2
title: Home Security
type: grid
cards:
- type: tile
entity: automation.leave_home
vertical: true
hide_state: true
show_entity_picture: false
layout_options:
grid_columns: 2
grid_rows: 2
- type: tile
entity: automation.arrived_home
vertical: true
hide_state: true
show_entity_picture: false
layout_options:
grid_columns: 2
grid_rows: 2
- type: tile
entity: automation.door_opened
vertical: true
hide_state: true
show_entity_picture: false
layout_options:
grid_columns: 2
grid_rows: 2
- type: tile
entity: automation.front_door_lock_notification
vertical: true
hide_state: true
show_entity_picture: false
layout_options:
grid_columns: 2
grid_rows: 2
title: Home Security |
|
type: custom:mod-card
card_mod:
style:
hui-grid-card $:
hui-card:
restriction-card $: |
:first-child, div#card {
height: 100%;
}
.: |
restriction-card {
height: 100%;
}
card:
type: grid
columns: 2
cards:
- type: custom:restriction-card
card:
type: tile
entity: automation.leave_home
vertical: true
hide_state: true
show_entity_picture: false
tap_action:
action: toggle
icon_tap_action:
action: toggle
color: primary
name: Leave Home
layout_options:
grid_columns: 2
grid_rows: 2
- type: custom:restriction-card
card:
type: tile
entity: automation.arrived_home
vertical: true
hide_state: true
show_entity_picture: false
name: Arrive Home
tap_action:
action: toggle
icon_tap_action:
action: toggle
color: primary
layout_options:
grid_columns: 2
grid_rows: 2
- type: custom:restriction-card
card:
type: tile
entity: automation.door_opened
vertical: true
hide_state: true
show_entity_picture: false
name: Door Opened
tap_action:
action: toggle
icon_tap_action:
action: toggle
color: primary
layout_options:
grid_columns: 2
grid_rows: 2
- type: custom:restriction-card
card:
type: tile
entity: automation.front_door_lock_notification
vertical: true
hide_state: true
show_entity_picture: false
name: Door Lock Notification
tap_action:
action: toggle
icon_tap_action:
action: toggle
color: primary
layout_options:
grid_columns: 2
grid_rows: 2
title: Home Security type: custom:mod-card
card_mod:
style:
hui-grid-card $:
hui-card:
restriction-card $: |
:first-child, div#card {
height: 100%;
}
.: |
restriction-card {
height: 100%;
}
card:
type: grid
columns: 2
square: false
cards:
- type: custom:restriction-card
card:
type: tile
entity: automation.leave_home
vertical: true
hide_state: true
show_entity_picture: false
tap_action:
action: toggle
icon_tap_action:
action: toggle
color: primary
name: Leave Home
layout_options:
grid_columns: 2
grid_rows: 2
- type: custom:restriction-card
card:
type: tile
entity: automation.arrived_home
vertical: true
hide_state: true
show_entity_picture: false
name: Arrive Home
tap_action:
action: toggle
icon_tap_action:
action: toggle
color: primary
layout_options:
grid_columns: 2
grid_rows: 2
- type: custom:restriction-card
card:
type: tile
entity: automation.door_opened
vertical: true
hide_state: true
show_entity_picture: false
name: Door Opened
tap_action:
action: toggle
icon_tap_action:
action: toggle
color: primary
layout_options:
grid_columns: 2
grid_rows: 2
- type: custom:restriction-card
card:
type: tile
entity: automation.front_door_lock_notification
vertical: true
hide_state: true
show_entity_picture: false
name: Door Lock Notification
tap_action:
action: toggle
icon_tap_action:
action: toggle
color: primary
layout_options:
grid_columns: 2
grid_rows: 2
title: Home Security |
As I told you - this is not about sections, it is about Grid which you are using inside your sections.
This is EXPECTED behaviour - the 1st Grid is with square cells (height=width for squares), the 2nd with not square cells (height is normal, not tiny). |
Conclusion: workaround is provided here: #117 (comment) |
Checklist:
Release with the issue:
1.2.9
Last working release (if known):
New Install
Browser and Operating System:
Firefox / MacOS
Firefox / Android
Companion App / Android
Description of problem:
^ w/ Restriction Card
^ w/o Restriction Card
Config:
Javascript errors shown in the web inspector (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered: