Repository navigation
Fix missing left outline on Mark as read button in several themes - #9426
Conversation
|
Thanks!
|
|
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.
7a9dbaa to
fad77fa
Compare
|
Thanks both. You are right, it was not specific to one theme: the cause is in the markup. The hidden I compared the left border and left radius of the button at desktop width for all themes in Before / after (desktop width):
|
|
Thanks :-) |






Fixes #9359
Changes proposed in this pull request:
app/layout/nav_menu.phtml, move the hidden_csrfinput of the "Mark as read" form back inside the#nav_menu_readdropdown (where it was before Follow-up #9169 remove form IDs everywhere #9205), instead of being the first child of the form right before theread_allbutton.input + .btngroups (.stick input + .btn, and.btn:first-childno 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.CREDITS.mdhas my name added.How to test the feature manually:
Verified:
php -lon 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 inp/themes/. A complete FreshRSS instance andmake test-allwere not run.