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

Question - can I disable the tap action #49

Open
direx1 opened this issue Nov 19, 2022 · 6 comments
Open

Question - can I disable the tap action #49

direx1 opened this issue Nov 19, 2022 · 6 comments

Comments

@direx1
Copy link

direx1 commented Nov 19, 2022

Hi,

Absolutely awesome dashboard card.

Question is, is it possible to disable the tap to fullscreen action. Far too often when I'm clicking next image or using companion app zoom it triggers into full screen. I would be happy to use full screen but it doesn't display correctly as I'm using this card further down in a lovelace view and the image requires me to scroll all the way to the top of the page. Ideally but not essential would be to have a small browser mod style popup but for now any way to edit the module to disable will do.

Thanks.

@TarheelGrad1998
Copy link
Owner

There's nothing built into the code, but yes if you don't mind editing code it's fairly easy. Edit the gallery-card.js and remove:

  1. on line 32, delete this text:
    @click="${ev => this._popupCamera(ev)}"

  2. on line 38, delete this text:
    @click="${ev => this._popupImage(ev)}"

Clear your browser cache after saving. That should do it.

@direx1
Copy link
Author

direx1 commented Nov 20, 2022

amazing thanks

@direx1
Copy link
Author

direx1 commented Nov 22, 2022

There's nothing built into the code, but yes if you don't mind editing code it's fairly easy. Edit the gallery-card.js and remove:

  1. on line 32, delete this text:
    @click="${ev => this._popupCamera(ev)}"
  2. on line 38, delete this text:
    @click="${ev => this._popupImage(ev)}"

Clear your browser cache after saving. That should do it.

Actually this doesn't work even after clearing cache. I think this is part of the edit panel not the part I'm looking for.

@TarheelGrad1998
Copy link
Owner

No, that's it. The edit panel is way down at the bottom, >= 866 or so.

Maybe try restarting HA after updating. I've had to do that before, but I don't understand why.

@cvjensen
Copy link

hi @TarheelGrad1998 - regarding the popup image , is it possible to swipe/use the buttons when looking at the popup version of the image ?

@vingerha
Copy link

vingerha commented Dec 4, 2022

I tested it in a incognito browser and there it works fine...no tap action on picture anylonger
Probably clear the cache

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

4 participants