You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While I was guessing the maximum height and length of the logo, I found that the maximum height for the logo is 34px and the padding is 2x4. The div containing the logo is 64px height. So there is an extra top-bottom padding of 64-34-8= 22
For the height of “w-toolbar" container we have in total 30px of padding for 34px of logo which is 46% of "dead space" !
Maybe this padding is excessive. What do you think ?
Breaking down the layout math from the component tree:
<w-toolbar style="height: 64px">: Although WToolbar.vue has a base class of min-h-[50px] px-3, HeaderNav.vue overrides the container height to 64px via inline style="height: 64px".
<w-btn dense flat>: The dense button adds 4px top and bottom padding (8px total).
Hardcoded 34px logo: Both branches (<w-avatar size="34px" square> when Logo + Site Title is enabled, and <img style="height: 34px" /> when Logo Only is selected) hardcode the logo height to 34px.
That leaves 64px - (34px + 8px) = 22px of vertical flex-centering space outside the button (30px total vertical whitespace around a 34px graphic).
While 34×34 aligns reasonably with a single line of text-h6 (1.25rem) when siteStore.logoText is true (a square emblem next to the text title), in Logo Only mode (v-else, where sites usually upload a horizontal brand/wordmark logo) 34px inside a 64px navbar feels cramped, and frontend/src/pages/AdminGeneral.vue currently does not document the 34px rendered height in the field hint.
2. How to Override the Logo Size Right Now (No Core Edit Required)
Until HeaderNav.vue exposes a logo height setting or increases the v-else (!siteStore.logoText) max height (e.g. to 44px–48px), you can adjust it immediately in Administration $\rightarrow$ Theme $\rightarrow$ Code Injection $\rightarrow$ CSS Override:
/* Increase logo height inside the 64px top header bar (e.g. from 34px to 44px) */.site-header.w-toolbar.w-btn>span>img{height:44px!important;width: auto !important;}/* If using "Logo + Site Title" mode (w-avatar square container) */.site-header.w-toolbar.w-btn.w-avatar{width:44px!important;height:44px!important;}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
In https://docs.js.wiki/admin/general and in site general information logo size should be displayed.
While I was guessing the maximum height and length of the logo, I found that the maximum height for the logo is 34px and the padding is 2x4. The div containing the logo is 64px height. So there is an extra top-bottom padding of 64-34-8= 22
For the height of “w-toolbar" container we have in total 30px of padding for 34px of logo which is 46% of "dead space" !
Maybe this padding is excessive. What do you think ?
Logo padding


logo container

All reactions