-
Notifications
You must be signed in to change notification settings - Fork 284
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
The header blocks the target mathematical equation after clicking on an equation reference #437
Comments
I have reproduced this in my Chrome browser. But it shouldn't happen, the latest fix for #158 is hugo-theme-meme/assets/scss/layout/_header.scss Lines 75 to 78 in 9ccd079
Using Then I tested this in my Safari browser and it works normally. So I think this is a upstream browser bug which caused |
@reuixiy Thanks for the reply! I actually ran the webpage in Edge, and it didn't work either. Maybe it's because Edge and Chrome are the same at the core. Considering that most upstream browsers usually take a long time to fix a bug, I don't expect this bug to be fixed by them soon. So maybe we can find a way to work around the problem in the meantime. For example, can we give the user an option to stop fixing the header at the top? It could be like the header in Hacker News, the header won't move along when the user scrolls up or down. It's just like other parts of the webpage, when the user scrolls away, it disappears. It has two advantages:
Please kindly consider this suggestion :) |
Yes you can customize it by yourself, simply adding .header {
position: relative;
}
.main {
padding-top: 3em;
} to your See https://github.com/reuixiy/hugo-theme-meme#customize-meme |
@reuixiy I just tried it, and it worked! Thanks for the solution! |
Here is a sample markdown text for illustrating my point:
The
$\eqref{1}$
part is a link, when the user clicks on the link, the webpage should jump to the equation marked with\tag{1}
. It works as expected, only that the target equation is at the top of the page, and the header is also at the top of the page, so the header blocks the target equation.There is no such problem when clicking on markdown headers, it might have been fixed with issues like #158. Could this issue be solved in the same way?
I recorded a video to illustrate my point:
Screen.Recording.2023-07-21.at.08.52.17.mov
You can also find those texts on this webpage for testing.
Thanks in advance!
The text was updated successfully, but these errors were encountered: