Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Highly Configurable/Customizable #65

Closed
greedyvegan opened this issue Apr 17, 2024 · 2 comments
Closed

Highly Configurable/Customizable #65

greedyvegan opened this issue Apr 17, 2024 · 2 comments

Comments

@greedyvegan
Copy link

can I change the height & width of the album art/cover?
(or the module overall?)
I have a module I want to hide while spotify is playing so when its not playing the other module is visible.

Screenshot 2024-04-16 at 8 11 39 PM

I want to cover the entire module with the spotify module.
Do I make changes in the magicmirror/modules/MMM-OnSpotify/css/custom.css or magicmirror/css/custom.css?

@Fabrizz
Copy link
Owner

Fabrizz commented Apr 17, 2024

You should make changes to magicmirror/css/custom.css as they don't get overwritten. You can change the module size using

magicmirror/css/custom.css

/* MMM-OnSpotify | Change sizes */
.MMM-OnSpotify.module {
    /* Size is calculated based on font-size */
    font-size: 24px !important; /* or 20px, 18px, etc*/
}

You can use CSS :has :is to select stuff from other sibllings
(change newsfeed to your module name or how its namedin the css)
(If the chromium browser version older than 2022, it maybe does not have :has:is support)

magicmirror/css/custom.css

/* MMM-OnSpotify | Opacity of third party based on state */
.region:has(.ONSP-Custom .playing) :is(.module.newsfeed) {
  opacity: 0 !important;
}
.module.newsfeed {
  transition: opacity 500ms;
  opacity: 1 !important;
}
Grabacion.2024-04-16.223217.mp4

@greedyvegan
Copy link
Author

thank you very much

@Fabrizz Fabrizz closed this as completed Apr 19, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants