Hard to identify referenced footnotes after click/jump for multiple reasons
- Dominant language
- No language data
- Stars
- 42
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
### Description
This is probably not specific to this paper, but upon clicking a footnote link in the body (e.g. `[16]`) and after the browser has followed the link and jumped to the anchor location, it is not clear which of the references is the one that was cited (especially for papers with many references). This is due to three different issues:
1) When you jump to `#location` in a web browser, the browser moves the viewport so that `#location` is at the top of the viewport (if possible; see point 2 below). The problem is that the top 60px of the viewport (on desktop) are obscured by your red "HTML view of paper" banner, which is *overlaid* on top of the top of the viewport, so that the referenced item is under the banner. Solution: use an iframe for the html view of the paper so that the viewport starts *under* the banner (which would be in the root frame and not in the iframe). This is further complicated by point 3 below.
2) When there is not enough content in the DOM after the `#location` definition, the browser cannot jump to position `#location` at the top of the viewport - it will jump to the end of the document and the only guarantee is that `#location` is *somewhere* in the view, but it could be anywhere. This is further complicated by point 3 below.
3) The citations at the bottom are not numbered. When you click `[16]` and the browser jumps, your context is the "16" but there is nothing to match it against in the list of citations. Sometimes the author has provided enough context in the sentence preceding the `[16]` so you can identify the correct citation by the author or the name of the paper, but it's often not the case so you're not sure which of the citations you're supposed to be looking at.
### (Optional:) Please add any files, screenshots, or other information here.
Contrast the lack of numbers the citations list with the typical behavior for numbered footnotes/citations, e.g. this one:
In-text link:
Which takes you to this list:
As you can see, it is immediately clear which of the citations/footnotes you are supposed to look at.
### (Required) What is this issue most closely related to? Select one.
References
### Internal issue ID
b9b479bf-9a07-4882-8ec4-659e6b9c3c6a
### Paper URL
https://arxiv.org/html/2312.13240v2#bib.bib16
### Browser
browserInfo=Chrome/140.0.0.0
### Device Type
Desktop
Contributor guide
Research direction
Start by inspecting the rendered HTML at the supplied paper URL around #bib.bib16 and trace how the banner, anchors, and reference list are presented. Done means a clicked citation remains identifiable in the viewport and matches a clearly numbered entry in the references, including when the target is near the end of the document.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100