Skip to content
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

Styling popup window not works #335

Closed
4 tasks done
Suggorath opened this issue Jun 11, 2022 · 6 comments
Closed
4 tasks done

Styling popup window not works #335

Suggorath opened this issue Jun 11, 2022 · 6 comments

Comments

@Suggorath
Copy link

Suggorath commented Jun 11, 2022

My Home Assistant version:

  • Home Assistant Core 2022.6.5
  • Home Assistant Supervisor 2022.05.3
  • Home Assistant OS 8.1
  • HACS 1.25.5
  • button-card 3.4.2
  • browser-mod 1.5.3

What I am doing:
I am trying styling browser-mod popup window .mdc-dialog__surface

What happened instead:
nothing

cards:
  - type: custom:button-card
    entity: sensor.plug_computer_energy_today
    tap_action:
      action: fire-dom-event
      browser_mod:
        command: popup
        title: Styled popup
        card:
          type: markdown
          content: Popup!
        style: |
          .mdc-dialog__surface {
            background: transparent !important;
          }
  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).

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

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

  • 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.

@petoblat
Copy link

petoblat commented Jun 13, 2022

I've the same problem. doesn't work at all. before the upgrade was working well.
this is my code:

  - type: "custom:button-card"
    template: button_menu
    name: BATTERIE
    tap_action:
      action: fire-dom-event
      browser_mod:
        command: popup
        title: Stato Batterie Sensori
        auto_close: false
        style:
          $: |
            .mdc-dialog .mdc-dialog__container .mdc-dialog__surface {
              border-radius: 25px;
            }
            .mdc-dialog .mdc-dialog__content {
                padding: 40px 48px !important;
            }
        card:
          type: vertical-stack
          cards:
            - type: entities
              entities:
                - entity: sensor.sens_mov_1_battery
                  name: Sensore Movimento 1
                  secondary_info: last-updated
                - entity: sensor.sens_mov_2_battery
                  name: Sensore Movimento 2
                  secondary_info: last-updated
                - entity: sensor.sens_mov_3_battery
                  name: Sensore Movimento 3
                  secondary_info: last-updated
                - entity: sensor.sens_mov_4_battery
                  name: Sensore Movimento 4
                  secondary_info: last-updated
                - entity: sensor.sens_temp_1_battery
                  name: Sensore Temperatura
                  secondary_info: last-updated
                - entity: sensor.sens_cont_1_battery
                  name: Sensore Contatto
                  secondary_info: last-updated

@Suggorath
Copy link
Author

I reinstall all modules what I have and problem was solved.

@petoblat
Copy link

I reinstall all modules what I have and problem was solved.

What do you mean?
I reinstall Browser_mod from HACS but the problem continue to exist.

@Suggorath
Copy link
Author

Try reinstall "card-mod 3" too. https://github.com/thomasloven/lovelace-card-mod

@petoblat
Copy link

Try reinstall "card-mod 3" too. https://github.com/thomasloven/lovelace-card-mod

None. Doesn't work :(

@thomasloven
Copy link
Owner

Closed because of Browser Mod 2.0 release.
Please see #354.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants