Skip to content

syslog status: stop card header reflow on tool/handle hover - #408

Merged
bmfmancini merged 1 commit into
developfrom
fix/status-card-header-hover-reflow
Oct 10, 2026
Merged

bmfmancini merged 1 commit into
developfrom
fix/status-card-header-hover-reflow

Conversation

@TheWitness

Copy link
Copy Markdown
Member

Fixes a visual glitch on the Syslog Status tab: hovering (or focusing) a
card's drag handle — the hamburger — or any of its header tools made a border
appear and reflowed/resized the card header.

Cause: .syslogStatusCardDrag and .syslogStatusCardTool used border: 0, so
when a hover/focus border is applied (Cacti's global button styling) it added
width/height and pushed the header around.

Fix (CSS only, css/search.css):

  • Reserve a 1px solid transparent border (with box-sizing: border-box) on
    the handle and tool buttons so a hover/focus highlight recolours the reserved
    border instead of changing the box size.
  • Keep that border transparent in :hover/:focus-visible so only the existing
    background highlight shows.
  • Give .syslogStatusCardHeader a fixed min-height for a stable row height.

No markup or behaviour changes.

The drag handle and card tools used border:0, so a hover/focus border (from Cacti's global button styling) added width/height and reflowed the header. Reserve a transparent 1px border (box-sizing: border-box) so the highlight recolours it instead of resizing, keep that border transparent on hover/focus, and give the header a fixed min-height for a stable row.
@TheWitness
TheWitness requested review from bmfmancini and xmacan and a balanced review from Copilot October 10, 2026 12:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused CSS changes correctly prevent border-induced layout shifts without altering behavior.

0 open findings

What changed in this PR

Stabilizes Syslog Status card headers when controls are hovered or focused.

Changes:

  • Reserves transparent button borders to prevent size changes.
  • Adds a stable minimum header height.
File Description
css/​search.css Prevents Status card header reflow during control interaction.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@bmfmancini
bmfmancini merged commit ca3dc56 into develop Oct 10, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants