lovelace-card-mod icon indicating copy to clipboard operation
lovelace-card-mod copied to clipboard

Changes to card-mod-more-info-yaml stopped working

Open v-alvex opened this issue 4 years ago • 2 comments

Home Assistant version: 2021.7.0

Card mod theme changes to ha-more-info-dialog, stopped applying to more-info dialogs after the last HA updates, as they used to. They now only apply to custom browser mod's popups. https://github.com/thomasloven/lovelace-card-mod/wiki/Card-mod-Themes#special-theme-variables

  card-mod-more-info-yaml: |
    .: |  
        .mdc-top-app-bar {
            display: none !important;
        }  
    $: |
      .mdc-dialog {
        backdrop-filter: blur(5px);
        box-shadow: 0px 0px 0px 0px;
        padding-top: 40px
            
      }
        .mdc-dialog .mdc-dialog__container .mdc-dialog__surface {
          box-shadow: 0px 0px 0px 0px;
          border-radius: 15px;        
        }
    .: |
        :host {
          --secondary-background-color: none;
        }   

Error messages from the browser console:

Uncaught (in promise) TypeError: Cannot read property 'then' of undefined at HTMLElement.e.showDialog (card-mod.js:5) at o (app.62541dd1.js:34265)

By putting an X in the boxes ([]) below, I indicate that I:

  • [X] Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).

  • [X] Have made sure I am using the latest version of the plugin.

  • [X] Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.

  • [X] Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.

v-alvex avatar Jul 19 '21 23:07 v-alvex

Can confirm this is still an issue in 2021.9.6 Screenshot 2021-09-12 152849

Hankanman avatar Sep 12 '21 14:09 Hankanman

I have the same problem

shahonseven avatar Sep 26 '21 14:09 shahonseven

Cannot reproduce in version 3.4.0. Please check and open a new issue if the problem persists.

thomasloven avatar Dec 27 '23 22:12 thomasloven