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
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
@melroy The "tiny" cue was that it's a very long text for a homepage link, so long that it grabbed too much attention to itself. Now that it's just "mbin" I will move it to its original position.
@vintprox Yea I understand. In the past I already tried to reduce the font-size of this text (on mobile), so it also fits better on a mobile view. Especially with longer text. But as you said, I just renamed it to a short "Mbin".
@vintprox Or what about enabling the logo now? Let's see..
@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.
@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 inconfig/
directory).@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)?
@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?
@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.