joelshepherd / tabliss

A beautiful, customisable New Tab page for Firefox, Chrome, and Edge.
https://tabliss.io
GNU General Public License v3.0
2.17k stars 283 forks source link

GitHub calendar is not resizable #579

Open iFurane opened 1 year ago

iFurane commented 1 year ago

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-wright-jamie commented 1 year ago

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 commented 1 year ago

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

iFurane commented 1 year ago

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

the-wright-jamie commented 1 year ago

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

iFurane commented 1 year ago

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

the-wright-jamie commented 1 year ago

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

iFurane commented 1 year ago

Bruh

iFurane commented 1 year ago

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

the-wright-jamie commented 1 year ago

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.

iFurane commented 1 year ago

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

the-wright-jamie commented 1 year ago

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