Skip to content

Fix missing left outline on Mark as read button in several themes - #9426

Merged
Alkarex merged 1 commit into
FreshRSS:edgefrom
Arslan-TR:fix/9359-adark-mark-read-border
Oct 12, 2026
Merged

Alkarex merged 1 commit into
FreshRSS:edgefrom
Arslan-TR:fix/9359-adark-mark-read-border

Conversation

@Arslan-TR

@Arslan-TR Arslan-TR commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #9359

Changes proposed in this pull request:

  • In app/layout/nav_menu.phtml, move the hidden _csrf input of the "Mark as read" form back inside the #nav_menu_read dropdown (where it was before Follow-up #9169 remove form IDs everywhere #9205), instead of being the first child of the form right before the read_all button.
  • Because of that input, many theme rules written for input + .btn groups (.stick input + .btn, and .btn:first-child no longer matching) removed the left border and the rounded left corners of the "Mark as read" button. This affected Alternative Dark, Origine and the themes built on them (Dark, Dark-pink, Origine-compact), Pafat, and gave a stray separator and square corners in Flat, Ansum and Mapco.
  • No theme CSS has to change. CREDITS.md has my name added.

How to test the feature manually:

  1. Select e.g. Alternative Dark or Origine, desktop width.
  2. The "Mark as read" button now has a full outline with rounded corners on its left side, like the first button of the other button groups.

Verified: php -l on the template. Computed border and radius of the button group were compared before/after at 1200px width on a static copy of the nav menu markup for every theme in p/themes/. A complete FreshRSS instance and make test-all were not run.

@Alkarex Alkarex added this to the 1.30.2 milestone Oct 10, 2026
@Alkarex

Alkarex commented Oct 10, 2026

Copy link
Copy Markdown
Member

Thanks!

  • I think the problem might be more general than just this theme, so the fix might have to be elsewhere
  • Please post before/after screenshots

@andris155

Copy link
Copy Markdown
Contributor

This error is present in the Origine theme as well. It needs to be fixed in the Origine theme too.

The hidden CSRF input was the first child of the form, directly before the
Mark as read button. Theme rules such as `.stick input + .btn` and
`.stick .btn:first-child` therefore treated the button as the second element
of an input + button group: no left border and no rounded left corners.
Move the input back inside the dropdown, as it was before FreshRSS#9205.
@Arslan-TR
Arslan-TR force-pushed the fix/9359-adark-mark-read-border branch from 7a9dbaa to fad77fa Compare October 12, 2026 06:56
@Arslan-TR Arslan-TR changed the title Fix Alternative Dark missing outline on Mark as read button Fix missing left outline on Mark as read button in several themes Oct 12, 2026
@Arslan-TR

Copy link
Copy Markdown
Contributor Author

Thanks both. You are right, it was not specific to one theme: the cause is in the markup. The hidden _csrf input had become the first child of the mark_read_menu form, right before the "Mark as read" button, so theme selectors such as .stick input + .btn (no left border) and .btn:first-child (rounded left corners) treated the button as the second element of an input + button group. The input is now back inside the dropdown (where it was before #9205), so no theme CSS changes are needed. I dropped my Alternative Dark specific rule and updated the PR.

I compared the left border and left radius of the button at desktop width for all themes in p/themes/: Alternative Dark, Dark, Dark-pink, Origine, Origine-compact and Pafat now have the outline and the rounded left corners; Flat, Ansum and Mapco lose the stray left separator and get the rounded corners like their other button groups; Nord and Swage are unchanged. This was checked on a static copy of the nav menu markup, not on a full instance.

Before / after (desktop width):

Before After
Alternative Dark
Origine
Flat

@Alkarex Alkarex added UI 🎨 User Interfaces Theme 🖌 and removed UI 🎨 User Interfaces labels Oct 12, 2026
@Alkarex
Alkarex merged commit 9e53bdd into FreshRSS:edge Oct 12, 2026
3 checks passed
@Alkarex

Alkarex commented Oct 12, 2026

Copy link
Copy Markdown
Member

Thanks :-)

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] UI Theme Alternative dark missing button outline

3 participants