Skip to content

Fix Mark as read button left edge in Origine on mobile - #9441

Merged
Alkarex merged 1 commit into
FreshRSS:edgefrom
HawkForge:fix-9428-origine-mobile-mark-read
Oct 15, 2026
Merged

Alkarex merged 1 commit into
FreshRSS:edgefrom
HawkForge:fix-9428-origine-mobile-mark-read

Conversation

@HawkForge

Copy link
Copy Markdown
Contributor

Closes #9428

Thanks @andris155 for the report and the screenshots (Origine theme).

The first screenshot (wide screen, "Mark as read" text button) is the case already fixed on edge by #9426, which is not in 1.30.1. The second screenshot (narrow screen, only the ✓ toggle) is still broken on edge, and this PR fixes it.

Changes proposed in this pull request:

  • Below 840px, the base theme hides the .read_all text button and only the dropdown toggle (✓) is shown. Origine has a rule in its @media (max-width: 840px) block that gives this toggle its left border and rounded corners back. Before Follow-up #9169 remove form IDs everywhere #9205 the rule was #nav_menu_read_all .btn (specificity 1,1,0), which beat the generic button-group rules. Follow-up #9169 remove form IDs everywhere #9205 changed it to .nav_menu_read_all .btn (0,2,0). That is now weaker than .stick .btn + .dropdown > .btn and .group .dropdown:last-child > .btn (both 0,4,0), which set border-left: none and border-radius: 0 3px 3px 0. The hidden .read_all button is still in the DOM, so .btn + .dropdown still matches.
  • The rule now uses .nav_menu .stick .mark-read-menu .dropdown-toggle.btn, the selector that Alternative-Dark, Dark, Flat, Nord, Pafat, Ansum and Mapco already use for the same toggle. The declarations are unchanged.
  • origine.rtl.css was regenerated with npm run rtlcss. No other file changed.

How to test the feature manually:

  1. Select the Origine (or Origine-compact) theme.
  2. Make the window narrower than 840px, or use a phone.
  3. The ✓ "Mark as read" toggle in the top bar now has a left border and rounded left corners, as before Follow-up #9169 remove form IDs everywhere #9205.

Pull request checklist:

  • clear commit messages
  • code manually tested
  • unit tests written (optional if too hard)
  • documentation updated

Notes on verification: I could not take a screenshot or run a browser. To check the change, I built the nav_menu.phtml markup for the mark-read group as a DOM (nav.nav_menu > div.nav_menu_read_all.group.stick > form.mark-read-menu > button.read_all.btn + div#nav_menu_read.dropdown > input[type=hidden], div.dropdown-target, a.dropdown-toggle.btn, …). A small script matched every theme's CSS (base frss.css plus each theme's files from metadata.json) against it and resolved the cascade for the left border and left radii, for wide and narrow (max-width 840px) layouts, in LTR and RTL.

  • Before: on narrow screens, Origine and Origine-compact got border-left: none and border-radius: 0 3px 3px 0 from line 263 of origine.css.
  • After: they get the left border and border-radius: 3px from the mobile rule.
  • Dark imports origine.css and keeps its own border-left colour, because its rule has the same selector and comes later.
  • Every other theme's result is unchanged, for both the wide .read_all button and the narrow toggle.

npm run stylelint passes.

At max-width 840px the text button is hidden and only the dropdown toggle
is shown. Origine restores its left border and radius with a rule that
used `#nav_menu_read_all .btn` until #9205 turned the ID into a class.
`.nav_menu_read_all .btn` is now weaker than the generic
`.stick .btn + .dropdown > .btn` and `.group .dropdown:last-child > .btn`
rules, so the toggle lost its left border and rounded left corners.
Use the same selector as the other themes.

Closes #9428
@Alkarex
Alkarex merged commit 6d30fb4 into FreshRSS:edge Oct 15, 2026
3 checks passed
@Alkarex

Alkarex commented Oct 15, 2026

Copy link
Copy Markdown
Member

Alkarex pushed a commit that referenced this pull request Oct 15, 2026
Adds HawkForge to CREDITS.md, as requested in #9441.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] The mark as read button left border and border radius is missing

2 participants