-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
header.hbs renders above the top of the HTML document, out of view #1331
Comments
Crap. |
I'm thinking if we should actually keep the header slot above the menu. To me this looks pretty ugly. I'd prefer it below the menu and above the title. Making it so would also fix this issue. Some links: |
I'd prefer the header where it is now, at the top; perhaps there could be a new setting for people who prefer it below the menu, rather than changing behavior? |
Just jotting down some notes about this... I think it will be quite difficult to support variable-sized elements above the menu bar. I think the size needs to be encoded in CSS. This really could use a web expert to see if that is possible. Otherwise I think the best solution is to just move the In general, the auto-hiding menu bar can be a little cantankerous. For example, on Firefox it gives this warning:
I really like the auto-hide behavior, and it seems to work pretty well in my testing. I do notice some stuttering while scrolling sometimes, but I'm uncertain if it is related to this. I did run across the Fucshia docs at https://fuchsia.dev/fuchsia-src/contribute/docs/documentation-navigation-toc which seem to handle this pretty well, too, and that doesn't generate warnings. It has content above the menu bar, but it is a fixed, known size. |
First of all: I am by no means a web dev. But what I just did was customizing the index.hbs and switch the following lines like this: <div id="menu-bar-hover-placeholder" class="click-transparent"></div>
{{> header}} Also, I had some link element (a small logo) in the header which was not fully clickable because of the placeholders z-index. The solution was this css class (you can also see it added in the snippet above): /* Workaround to make the logo header clickable. */
.click-transparent {
pointer-events: none;
} It was the only solution I found not to destroy the scrolling behaviour (at least it seems to work for now). But if the headers height is smaller than the placeholder, there will be a certain gap due to the placeholder... holding the place :D. A bit off-topic but somehow related: |
When using header.hbs in 0.3.5, my book is perfectly formatted. After updating to 0.4.2 (latest on the AUR at the present time), I get a blank placeholder and the actual header renders above the top of the page.
The text was updated successfully, but these errors were encountered: