Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project logo 200x50 px trunks project tile and brief. #17

Open
S0NN1 opened this issue May 7, 2021 · 2 comments
Open

Project logo 200x50 px trunks project tile and brief. #17

S0NN1 opened this issue May 7, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@S0NN1
Copy link

S0NN1 commented May 7, 2021

[System configuration]

OS: Ubuntu 20.04 L.T.S
Browser: Google Chrome v90.0.4430.93
Doxygen version: 1.9.1
Doxygen Awesome mode: sidebar_only
PROJECT_LOGO: 200 px width 55 px height (max dimensions from Doxygen manual)
PROJECT_NAME: "Contiki-NG + Kafka Contact Tracing" (placeholder)
PROJECT_BRIEF: "A simple integration between Contiki-NG and Apache Kafka"

[Expected result]

Sidebar scales in order to fit logo, brief, and name.

[Actual result]

Logo trunks project name and brief forcing side nav to move under the floating search bar.

[Temporary solution]

Use a squared logo.

ACTUAL RESULT SCREENSHOT

image

TEMPORARY SOLUTION SCREENSHOT

image

@S0NN1 S0NN1 changed the title Project logo with width within 200x50 px trunks project tile and brief. Project logo 200x50 px trunks project tile and brief. May 7, 2021
@jothepro
Copy link
Owner

jothepro commented May 7, 2021

  1. You can customize the sidebar width by overriding the CSS variable --side-nav-fixed-width. (Default is 350px)
    If you found a value that works for you, make sure to update the Doyxgen variable TREEVIEW_WIDTH to the same value. I cannot remember exactly why that's required but I think otherwise the sidebar may glitch.

  2. I see that even in your second screenshot the spacings are not right because the title & brief both wrap, making the title area too high.
    I don't think that it's possible to make the sidebar title area adjust in height automatically because I rely on the html generated by doxygen and do some nasty things to force it into this sidebar only theme. My personal workaround for this limitation is to choose a title & brief that fits in the tight space 🙈. But maybe it makes sense to parameterize the height with a css variable like --titlearea-fixed-height, allowing the user to fine-tune how much height he needs for the title area to fit.

Pls give me feedback if (1.) resolves the issue for you. I may provide (2.) in the future and will notify you about it. A PR from you would or course be welcome as well! :)

@jothepro jothepro added the bug Something isn't working label May 7, 2021
@S0NN1
Copy link
Author

S0NN1 commented May 7, 2021

Hi, thank you for your reply.

For the (1.) workaround I noticed that even with --side-nav-fixed-width: 550px; the side nav is moved.
chrome_Eq8S8HUieW
Only after increasing the --top-height parameter with, for example, 120px, the result is the one expected
chrome_G8wOfSvd9w

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants