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

Fix footnotes and overflow #1940

Merged
merged 2 commits into from
Mar 3, 2025
Merged

Fix footnotes and overflow #1940

merged 2 commits into from
Mar 3, 2025

Conversation

ekzyis
Copy link
Member

@ekzyis ekzyis commented Mar 3, 2025

Description

If you click on a footnote in a long post before you click show full text, the button disappears but the text is still contained:

2025-03-03.13-57-18.mp4

However, this also happens if you clicked show full text. In that case, the text is contained again.

Steps to reproduce

  1. Go to https://stacker.news/items/400430
  2. Click on first footnote

Additional Context

The fix is to remove code that was added in cc4bbf9 and explicitly checks for the #itemfn- prefix. This looks like the code was added to fix something. But I couldn't tell what that would be. Why wouldn't we want to show the full text if we're navigating to a footnote? Wouldn't we want to handle it like clicking on a chapter? 🤔

Checklist

Are your changes backwards compatible? Please answer below:

yes

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:

7. Tested clicking on footnotes, chapters, hard navigation, shallow navigation.

For frontend changes: Tested on mobile, light and dark mode? Please answer below:

n/a

Did you introduce any new environment variables? If so, call them out explicitly here:

no

@ekzyis ekzyis added the bug label Mar 3, 2025
@huumn huumn merged commit dfe0c4a into master Mar 3, 2025
6 checks passed
@huumn huumn deleted the fix-footnote branch March 3, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants