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

Make it so that headings are shown in full when you click on a link to them #89

Closed
wants to merge 2 commits into from

Conversation

Herkarl
Copy link
Member

@Herkarl Herkarl commented Oct 20, 2024

Before this change, you would be scrolled to just below a title when clicking on it, now you will instead see the whole heading (example). I've been annoyed by this for way too long :p

I practice I don't think we have any headers deeper than h3, but we support them in theory, so why not future-proof all the way to h6.

Apparently this css rule does not work on the default iPhone browser according to some link online? But i don't have an iphone so I can't test, and the index sidebar is basically useless on phone anyway.

@Benjaneb
Copy link
Contributor

I thought I already fixed this with a commit to Aurora. Does Aurora need a restart for that to apply or did it not work?

@Herkarl
Copy link
Member Author

Herkarl commented Oct 20, 2024

I thought I already fixed this with a commit to Aurora. Does Aurora need a restart for that to apply or did it not work?

I think it did not work. From my (very limited) testing it only works if you very explicitly apply it to the h* tags.

@Herkarl
Copy link
Member Author

Herkarl commented Oct 20, 2024

I thought I already fixed this with a commit to Aurora. Does Aurora need a restart for that to apply or did it not work?

Or perhaps it is not deployed properly, that rule does not appear to be present in https://aurora.datasektionen.se/

Do note that aurora doesn't have any autodeploy stuff

@Benjaneb
Copy link
Contributor

@foodelevator redeployed and it worked! Do we close this PR?

@Herkarl
Copy link
Member Author

Herkarl commented Oct 20, 2024

Yup!

@Herkarl
Copy link
Member Author

Herkarl commented Oct 20, 2024

Fixed by datasektionen/Aurora@f87648a

@Herkarl Herkarl closed this Oct 20, 2024
@Herkarl Herkarl deleted the anchor-margin branch October 20, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants