mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2626] Character editor header: action buttons render twice (both responsive action bars visible on desktop) #1296
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1296
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Jun 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2626
Originally assigned to: @SpicyMarinara on GitHub.
Summary
In the character editor, the header action buttons render twice on desktop. There's the expected bar inline with the title (Save · favorite · export · assign · duplicate · delete), plus a second, full-width copy of the same buttons in a row directly below it. Only one of the two bars should be visible at a time.
Steps to reproduce
Root cause
The header renders two responsive action bars in
packages/client/src/components/characters/CharacterEditor.tsx(~lines 874 / 882):<div className="mari-editor-actions hidden md:flex"><div className="mari-editor-actions flex w-full … md:hidden">They're meant to be mutually exclusive via Tailwind's
hidden/md:hidden. Butpackages/client/src/styles/globals.css:900defines an unlayered rule:Unlayered CSS wins over Tailwind's layered utilities, so this
display: flexoverrides bothhidden(on the desktop bar) andmd:hidden(on the mobile bar) — neither bar can be hidden, so both render at every width. (Same "unlayeredglobals.cssbeats Tailwind utilities" footgun that affects card-CSS scoping.)Suggested fix
Drop
display: flexfrom the base.mari-editor-actionsrule and let the existingflex/md:flex/hidden/md:hiddenutilities controldisplay(both bars already carry them); keep the other base properties (flex: 0 0 auto,align-items,gap). Alternatively, move the rule into the right cascade layer, or drop the.mari-editor-actionsclass from one of the two bars.Notes
CharacterEditor.tsx~874–882;globals.css:900.@SpicyMarinara commented on GitHub (Jun 18, 2026):
On it.