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

fixed: Global view - Stick the article to the top when opened #5153

Merged
merged 1 commit into from Mar 4, 2023

Conversation

math-GH
Copy link
Contributor

@math-GH math-GH commented Mar 2, 2023

Closes #5073
Ref #2336

Changes proposed in this pull request:

  • Javascript main.js

How to test the feature manually:

enable Display -> Stick the article to the top when opened

  1. go to global view
  2. open/close articles
  3. the article sticks to the top

same behavior, when Reading -> Show articles unfolded by default is enabled (Ref #2336)

Pull request checklist:

  • clear commit messages
  • code manually tested

@math-GH math-GH added the UI 🎨 User Interfaces label Mar 2, 2023
@math-GH math-GH added this to the 1.21.0 milestone Mar 2, 2023
@@ -447,9 +447,7 @@ function toggleContent(new_active, old_active, skipping) {
// when skipping, this feels more natural if it’s not so near the top
new_pos -= document.body.clientHeight / 4;
}
if (relative_move) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't that used in normal view?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see line 425: const relative_move = context.current_view === 'global';

@Alkarex Alkarex modified the milestones: 1.21.0, 1.22.0 Mar 4, 2023
@Alkarex Alkarex merged commit 1c1e63c into FreshRSS:edge Mar 4, 2023
1 check passed
@math-GH math-GH deleted the fix-5073-global-view branch March 4, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI 🎨 User Interfaces
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] "Stick the article to the top when opened" does not work in global view
2 participants