this post was submitted on 13 Jun 2023
47 points (100.0% liked)
Lemmy Plugins and Userscripts
2175 readers
1 users here now
A general repository for user scripts and plugins used to enhance the Lemmy browsing experience.
Post (or cross-post) your favorite Lemmy enhancements here!
General posting suggestions:
- Preface the submission with the type of enhancement - ex: [UserScript].
- Include a screenshot of the enhancement in use (where possible)
- Indicate the requirements for use (eg, greasemonkey, stylus, etc.)
Thanks!
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I added a line to restrict the banner width to a lemmy-native 730px - this should keep banner images looking as intended... Check out the update and see if that fixes the issue. (link for good order: https://github.com/soundjester/lemmy_monkey)
Wow that was fast! Although I'm not 100% sure its better (for high-res at least).
Here's how it looks for me on a 3840x2160 resolution and 110% zoom:
But I think I understand the technical reasons beyond your change. It should be universally applicable and not just on 4k res.
I think it still would look best if the banner is spanning the whole top, maybe up to the community-sidebar on the right (1) or even beyond that (2). I tried to highlight 1 & 2 in this poor greenshot cap :)
Anyway, thanks for your great work!!
I think having a slim banner is better, because it takes away less precious space on smaller screens. Remember that not everyone has huge monitors, many use web browsers on laptops and the like.
I absolutely agree that a wider, somewhat shorter banner across the top would be best. My current logic is that most mods do not have this userscript and rely on the limits set by the default stylesheet. So they upload images optimized to fill a 730 x 240 space.
The line that controls this in the script is line 75:
GM_addStyle(".position-relative.mb-2 { max-width: 730px; }");
~~if you take that out and replace it with:
GM_addStyle(".img-fluid { height: 180px; }");
you'll have something closer to what you want. It'll still look strange tho (IMO)~~^^ do not do this ^^ I was wrong
I've just tested it. the GM_addStyle(".position-relative.mb-2 { max-width: 730px; }"); is definitive the way to for now. I think you are spot on with the banner size.
yeah. this also has the happy effect of "correctly" formatting profile banner pics as well...
Yes. I've also looked around a bit in different subs and many of them dont even have a banner wider than a few pixels. I guess thats as good as it gets as long as there are no specified banner sizes enforced all across the network. And of course not everyone uses your glorious script (but I'll spread the word, its really really cool!).