tabliss icon indicating copy to clipboard operation
tabliss copied to clipboard

GitHub calendar is not resizable

Open iFurane opened this issue 2 years ago • 11 comments

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!

iFurane avatar Feb 26 '23 06:02 iFurane

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

the-wright-jamie avatar Feb 27 '23 10:02 the-wright-jamie

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:
image

the-wright-jamie avatar Mar 07 '23 22:03 the-wright-jamie

Nice! And thank you for replying! This is also the first issue I ever opened on GitHub.

iFurane avatar Mar 08 '23 17:03 iFurane

Glad I could help! Also welcome to GitHub, hope your programming journey is a long and prosperous one 👋

the-wright-jamie avatar Mar 08 '23 17:03 the-wright-jamie

Seems like GitHub calendar is the only widget that is using its own CSS.

iFurane avatar Mar 12 '23 11:03 iFurane

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? 😄

the-wright-jamie avatar Mar 12 '23 11:03 the-wright-jamie

Bruh

iFurane avatar Mar 12 '23 12:03 iFurane

Damn, I thought it would be easy to fix this, but it seems like it would require a complete rework of the widget classes.

iFurane avatar Mar 12 '23 12:03 iFurane

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.

the-wright-jamie avatar Mar 12 '23 12:03 the-wright-jamie

But I like your idea. We can just add another property to allow transforming widgets that don't have any text.

iFurane avatar Mar 12 '23 12:03 iFurane

You're welcome to try your hand, I can give you write access to my fork

the-wright-jamie avatar Mar 12 '23 12:03 the-wright-jamie