tabliss
tabliss copied to clipboard
GitHub calendar is not resizable
It might not be possible for the widget to be resizable due to how it is fetched from the profile. But if it is possible, then It'd be great!
The way widgets currently scale appears to be based on font size, so if we scaled via transform as well then it would allow all widgets to transform. I opened a PR to see if it'll be any use, but if it gets accepted it'll break all configs, so I doubt it will, but suggestions would be appreciated.
This issue has bugged me for a while too, I've learned to just accept the default size, but it would be nice to be able to scale it up and down
By the way, I forgot to mention: in the mean time you can use the following Custom CSS to resize it manually.
.GitHub {
transform-origin: top;
transform: scale(1); /* CHANGE ME. 1 = DEFAULT SIZE */
}
To get Custom CSS, just add the Custom CSS Widget in the Settings menu:
Nice! And thank you for replying! This is also the first issue I ever opened on GitHub.
Glad I could help! Also welcome to GitHub, hope your programming journey is a long and prosperous one 👋
Seems like GitHub calendar is the only widget that is using its own CSS.
Don't think it's using it's own CSS - the scaling is based on text size and since there's no text on the calendar there's nothing to actaully scale, make sense? 😄
Bruh
Damn, I thought it would be easy to fix this, but it seems like it would require a complete rework of the widget classes.
Yep, I've already looked into it, I made a PR to try my luck and see if it'll get accepted but I don't think it will.
But I like your idea. We can just add another property to allow transforming widgets that don't have any text.
You're welcome to try your hand, I can give you write access to my fork