popup-backdrop-filter icon indicating copy to clipboard operation
popup-backdrop-filter copied to clipboard

On tablets and mobile not working

Open RenzoBeux opened this issue 5 years ago • 25 comments

Hi! It works perfect for desktop runing chrome but on tablet and my cellphone it seems it is doing anything.

RenzoBeux avatar May 04 '20 14:05 RenzoBeux

Strangely this works on my Lenovo Yoga Tab 3 running an old version of Android, but doesn't work on my Amazon Fire HD 10. Both running Fully Kiosk.

joshtbernstein avatar May 10 '20 03:05 joshtbernstein

yep, fire tablet here too, i dont know, i finally got it working, but is extremely laggy. I don`t know :(

RenzoBeux avatar May 10 '20 03:05 RenzoBeux

Fire HD 10+Fully Kiosk not work

myenong avatar Jun 01 '20 01:06 myenong

Galaxy tab a, fully kiosk not working anymore :-(

Nicxe avatar Aug 26 '20 18:08 Nicxe

Is this still working? cause here on laptop it doesnt work..

skank01 avatar Oct 26 '20 17:10 skank01

Is this still working? cause here on laptop it doesnt work..

Not for me, but you can do the same with browser mod instead.

https://github.com/thomasloven/hass-browser_mod

Nicxe avatar Oct 26 '20 17:10 Nicxe

I have browser mod too How can i blur it cause i dont see any info for that

skank01 avatar Oct 26 '20 17:10 skank01

@skank01 Use card mod Themes and add it yo you theme. This works for me,

  card-mod-theme: tablet
  card-mod-more-info-yaml: |
    $: |
      .mdc-dialog {
        backdrop-filter: blur(10px);
        background: rgba(0,0,0,0.0);
      }
      .mdc-dialog .mdc-dialog__container .mdc-dialog__surface {
        border-radius: 1em;
      }

Nicxe avatar Oct 26 '20 18:10 Nicxe

Hi, i just found it too thx

Mod Popup Blur Cards Behind

card-mod-theme: Google Dark Theme card-mod-more-info-yaml: | $: | .mdc-dialog { backdrop-filter: blur(17px); -webkit-backdrop-filter: blur(17px); background: rgba(0,0,0,0.25); } .mdc-dialog .mdc-dialog__container .mdc-dialog__surface { background: none !important; box-shadow: none; border-radius: 0px; } ha-header-bar: $: | .mdc-top-app-bar { background: none !important; }

skank01 avatar Oct 26 '20 18:10 skank01

Yay its working thx

Op ma 26 okt. 2020 om 19:07 schreef Niklas V [email protected]:

@skank01 https://github.com/skank01 Use card mod Themes https://github.com/thomasloven/lovelace-card-mod/wiki/Card-mod-Themes and add it yo you theme. This works for me,

card-mod-theme: tablet card-mod-more-info-yaml: | $: | .mdc-dialog { backdrop-filter: blur(10px); background: rgba(0,0,0,0.0); } .mdc-dialog .mdc-dialog__container .mdc-dialog__surface { border-radius: 1em; }

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gabe565/popup-backdrop-filter/issues/2#issuecomment-716729177, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMXFMVTMLXV4NKRKXCRGBCTSMW3FBANCNFSM4MYZHZOQ .

skank01 avatar Oct 26 '20 18:10 skank01

@Nicxe Your card mod code works perfectly. Thank you! This is was the solution I used.

@skank01 Thank you. I had to take out some lines at the bottom for the blur effect to work. Maybe, its because I also use card mod code to make the header compact?

Blur effect completely broken using this code::

  card-mod-more-info-yaml: |
    $: |
      .mdc-dialog {
        backdrop-filter: blur(17px);
        -webkit-backdrop-filter: blur(17px);
        background: rgba(0, 0, 0, 0.25);
      }
      .mdc-dialog .mdc-dialog__container .mdc-dialog__surface {
        background: none !important;
        box-shadow: none;
        border-radius: 0px;
      }
    ha-header-bar:      
    $: |
      .mdc-top-app-bar {
        background: none !important;
      }

Works:

  card-mod-more-info-yaml: |
    $: |
      .mdc-dialog {
        backdrop-filter: blur(17px);
        -webkit-backdrop-filter: blur(17px);
        background: rgba(0, 0, 0, 0.25);
      }
      .mdc-dialog .mdc-dialog__container .mdc-dialog__surface {
        background: none !important;
        box-shadow: none;
        border-radius: 0px;
      }

Works perfectly without changing anything:

  card-mod-more-info-yaml: |
    $: |
      .mdc-dialog {
        backdrop-filter: blur(10px);
        background: rgba(0,0,0,0.0);
      }
      .mdc-dialog .mdc-dialog__container .mdc-dialog__surface {
        border-radius: 1em;
      }

mkanet avatar Nov 11 '20 01:11 mkanet

@skank01 @Nicxe , do you know if it's possible to use Card-Mod to also blur the background when opening up the card editor? I just asked this question in the Card-Mod forum; however, I'm not sure if anyone there has the backdrop filter to test against. I tried looking for the CSS elements responsible for this myself; however, I'm not very good at CSS mods yet.

dd12991d21fdc72b06a056a5b8d135fba9c3ac48

mkanet avatar Nov 11 '20 19:11 mkanet

I've integrated backdrop-filter into the upcoming Home Assistant version (the beta just has released a few minutes ago). There you can add this snippet to your theme and get blur on popup dialogs everywhere (even in the settings etc.):

  dialog-backdrop-filter: blur(5px)
  iron-overlay-backdrop-opacity: 1
  iron-overlay-backdrop-background-color: rgba(0, 0, 0, 0.32)

noxhirsch avatar Nov 11 '20 20:11 noxhirsch

@noxhirsch thank you so much. I'm currently stuck on Home Assistant version 0.116.4 due to a bug introduced in 0.117.x that breaks some people's REST sensors: https://github.com/home-assistant/core/issues/42608

Is there any way at all for me to use Card-mod or any other possible workaround until I can upgrade Home Assistant? I'm very motivated to get this working. Thanks again for your help.

mkanet avatar Nov 11 '20 21:11 mkanet

dialog-backdrop-filter: blur(5px) iron-overlay-backdrop-opacity: 1 iron-overlay-backdrop-background-color: rgba(0, 0, 0, 0.32)

Thank you very much for this. It worked like a charm. I finally upgraded to the latest version of Home Assistant; which allowed me to take advantage of this.

mkanet avatar Jan 17 '21 02:01 mkanet

I've added

  dialog-backdrop-filter: blur(5px)
  iron-overlay-backdrop-opacity: 1
  iron-overlay-backdrop-background-color: rgba(0, 0, 0, 0.32)

to my light and dark theme, but it doesn't work for me. I've restarted HA, reloaded browser etc. but I don't get the blurred backgrounds yet, could I have missed a simple step?

Sjorsa avatar Mar 03 '21 10:03 Sjorsa

@Sjorsa is your Home Assistant up to date or are you running a (very) old version? Or do you use Firefox? Then you may have to enable backdrop-filter: https://dev.to/rethinkprogramming/how-to-enable-backdrop-filter-in-firefox-2n8e

noxhirsch avatar Mar 03 '21 14:03 noxhirsch

@noxhirsch I am on core-2021.2.3 and just tried the firefox trick and restarted firefox, but it does not work. This is how I added it to my google light theme

Sjorsa avatar Mar 03 '21 16:03 Sjorsa

@Sjorsa That seems correct to me. Can you try if it works in Chrome or Edge Chromium?

noxhirsch avatar Mar 03 '21 16:03 noxhirsch

Oh it does work on Chrome, could there be some conflict with another plugin?

Sjorsa avatar Mar 03 '21 18:03 Sjorsa

@Sjorsa It's possible, but I don't think so. I have many stuff installed like card_mod and browser_mod and for me it's working fine in Firefox with layout.css.backdrop-filter.enabled and gfx.webrender.all = true.

noxhirsch avatar Mar 03 '21 20:03 noxhirsch

@noxhirsch Too bad then :( I love how it looks on chrome but I'm not switching back for just that feature haha, it's not THAT important :P

Sjorsa avatar Mar 04 '21 17:03 Sjorsa

I've integrated backdrop-filter into the upcoming Home Assistant version (the beta just has released a few minutes ago). There you can add this snippet to your theme and get blur on popup dialogs everywhere (even in the settings etc.):

  dialog-backdrop-filter: blur(5px)
  iron-overlay-backdrop-opacity: 1
  iron-overlay-backdrop-background-color: rgba(0, 0, 0, 0.32)

Is it possible to get this to work with the iOS native Homeassistant App? I can get this to work on my android phone and pc but have no idea how to do it on iOS.

deacrush avatar Sep 23 '21 11:09 deacrush

@deacrush It's possible that the iOS app / Safari needs a -webkit--Prefix in my CSS addition for the HA frontend. I can add that soon™

noxhirsch avatar Sep 24 '21 20:09 noxhirsch

@deacrush: The PR that should fix it for Safari just got merged - so it should be available with the next release

noxhirsch avatar Nov 01 '21 11:11 noxhirsch