this post was submitted on 10 Oct 2023
2 points (100.0% liked)

dR Bulletin Board

2 readers
1 users here now

Unofficial devRant bulletin board, a magazine for people of devrant.com and categories remotely related to information technology. We are here collecting discussions, recommended software, links, videos, artworks, music and other resources around our interests. It's a place open to the wider Fediverse, meaning people outside the originating instance can interact with everything. To let your post from Mastodon be seen in our Microblog, include one of our featured tags: #devrant #drcc #drbboard ๐Ÿท (Use #drbb for anything related to the bulletin board itself.) ๐Ÿ›ก Familiarize with the guide before posting: https://kbin.melroy.org/m/drbboard/t/51078 ๐Ÿฟ Welcome, have a whale of time and happy scrolling! ๐Ÿ˜Ž

founded 1 year ago
MODERATORS
 

Custom CSS updates | dR Bulletin Board

Whenever you visit #dRBB, you will see slight changes in the #Kbin header. I moved instance's home link to the right to prevent any accidental exits. And there is now a solid icon just in case.

If you have any suggestions, feel free to leave a reply.

#drbboard

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 1 year ago (2 children)

@vintprox Or what about enabling the logo now? Let's see..

[โ€“] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

@melroy LGTM! But it jumps on each page reload, like any other image on Kbin. ๐Ÿค” Seems like a cache issue, worth another ticket.

In this case, image width can be fixed to avoid hiccups - but if it's meant to change again, it's not a real solution.

[โ€“] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

@vintprox That is because the image doesn't have a predefined width="" field: ``... However, that can not be a static value if somebody wants to upload another logo.. so it needs to bit configurable somehow (eg. via dot config or somewhere in config/ directory).

[โ€“] [email protected] 1 points 1 year ago (1 children)

@vintprox Unless.. the Twig template switches between different kind of HTML tags. We can maybe set it static to this mbin_Logo.svg for now eg via an additional ID/Class in CSS (but not on custom logos)?

[โ€“] [email protected] 1 points 1 year ago (1 children)

@melroy If config is the primary way for admins to change logo's appearance, which I doubt, then configuration option for width looks sensible. Otherwise, aren't they going to tackle CSS anyway?

[โ€“] [email protected] 1 points 1 year ago

@vintprox The user might only change the logo via the setting, without tinkering CSS stylesheets.

I didn't check the code, but we could set width attribute by default if Twig switches between default logo and user logo.