#todo-list, hide add item

1 messages · Page 1 of 1 (latest)

mortal moss
#

I have a kiosk type display with the basic todo-list. No one can click on anything, so the Add Item input box is a waste of space. I tried cardmod to remove it and failed, and I tried to find the item in the page info and source, but if it is there, it is beyond my skill to find it.

I would think this code would be close and I just have the wrong item name.

  - type: todo-list
    entity: todo.KidP
    title: P
    view_layout:
      position: b
    card_mod:
      style: |
        ha-card.type-todo-list .addRow {
              display: none;
            }
opal grail
#

Your card_mod work for me; the AddItem box was hidden. I noticed two things though: in the preview it took a moment to apply the card_mod (you may have to save the card to see the change) and, when hidden, there was a big gap between the title and Active header.
Two options to close the gap. Use title: "" to not display the title. (I couldn't figure out how to modify it with card_mod.) If you want the title, margin-top: -35px for the headers helped.