fix(ui): make branded footer span full width on desktop#34
Open
dmchaledev wants to merge 1 commit into
Open
Conversation
The .hb-footer element is the third child of the .body grid (grid-template-columns: 300px 1fr). With CSS grid auto-placement it landed in row 2 / column 1, so on desktop the "by HailBytes — managed attack surface management" footer rendered only 300px wide, cramped and wrapping under the form panel instead of spanning the full widget width. Add grid-column: 1 / -1 so the footer spans all columns. No effect on the mobile single-column layout, which already rendered correctly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JUB1CzC4yZJKUhVVuKiYc1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On desktop, the branded "by HailBytes — managed attack surface management" footer renders cramped at only 300px wide, wrapping awkwardly under the form panel, instead of spanning the full width of the widget.
This is a layout bug in the shipped web component — the lead-gen surface embedded on partner sites — so it's user-facing on every desktop render where branding is shown.
Root cause
The footer is the third child of
.body, which is a CSS grid:.body's first two children (.form-panel,.results-panel) fill row 1. With grid auto-placement, the third child (.hb-footer) lands in row 2 / column 1 — the narrow 300px column..hb-footerhad nogrid-column, so nothing pulled it back to full width. The mobile layout (grid-template-columns: 1frunder 700px) was unaffected and already rendered correctly.Fix
One line — span the footer across all grid columns:
Verification
Measured the rendered footer in headless Chromium (widget width 900px):
Before / after, dark theme:
npm test→ 65 passing, 0 failing (no behavior/logic touched — CSS only).Scope
hailbytes-vuln-calculator.js— one CSS line in the inlineSTYLESblock. No change to markup, calculation engine, output shape, types, or the mobile layout.🤖 Generated with Claude Code
Generated by Claude Code