Skip to content

fix(ui): tighten Cozystack logo and balance header size#29

Merged
Aleksei Sviridkin (lexfrei) merged 2 commits into
mainfrom
fix/logo-viewbox
Jun 2, 2026
Merged

fix(ui): tighten Cozystack logo and balance header size#29
Aleksei Sviridkin (lexfrei) merged 2 commits into
mainfrom
fix/logo-viewbox

Conversation

@kvaps
Copy link
Copy Markdown
Member

@kvaps Andrei Kvapil (kvaps) commented Jun 1, 2026

logo

What

The header logo SVG used viewBox="0 0 1352 453" while the actual artwork only spans roughly x 108..1245, y 113..339, leaving large empty margins (most visibly top and bottom). Rendered at a fixed height this made the logo look small.

  • Crop the viewBox to the artwork bounding box (with a couple of units of breathing room) so the logo fills its box.
  • Adjust the header logo height from h-11 to h-9 to keep a balanced size after the crop.

Why

The logo appeared undersized in the header due to the SVG's internal vertical padding.

Andrei Kvapil (kvaps) and others added 2 commits June 2, 2026 00:01
The logo SVG used viewBox "0 0 1352 453" while the actual artwork only
spans roughly x 108..1245, y 113..339, leaving large empty margins (most
visibly top and bottom). Rendered at a fixed height (h-11) this made the
logo look small. Crop the viewBox to the artwork bounding box (with a
couple of units of breathing room) so it fills its box.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <andrei.kvapil@aenix.io>
With the tightened logo viewBox, h-11 rendered the logo too large in the
header; h-9 restores a balanced size.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <andrei.kvapil@aenix.io>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 1, 2026

Warning

Review limit reached

@kvaps, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 44 minutes and 38 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 821242d0-0990-4b95-8cb2-69d264631912

📥 Commits

Reviewing files that changed from the base of the PR and between 27e9b1b and 6913c08.

⛔ Files ignored due to path filters (1)
  • packages/ui/src/assets/logo.svg is excluded by !**/*.svg
📒 Files selected for processing (1)
  • packages/ui/src/components/layout/Header.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/logo-viewbox

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added size/XS This PR changes 0-9 lines, ignoring generated files area/ui Issues or PRs related to packages/ui — AppShell, Sidebar, Header, Button, primitives kind/bug Categorizes issue or PR as related to a bug labels Jun 1, 2026
@kvaps Andrei Kvapil (kvaps) marked this pull request as ready for review June 1, 2026 22:14
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the logo.svg asset by adjusting its viewBox attribute to crop empty space, and correspondingly reduces the height of the <Logo> component in Header.tsx from h-11 to h-9 to maintain proper alignment. No review comments were provided, and there is no additional feedback to address.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

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.

Tightens the default Cozystack logo by cropping the SVG viewBox to the wordmark bounds (verified geometrically — the glyph occupies x:[108,1245] y:[113,339], and the new viewBox wraps it with a ~2px margin on every side, nothing clipped) and balances the header by dropping the height class from h-11 to h-9. Path data is byte-identical; only the viewBox attribute changes. Scope is limited to the bundled fallback logo — custom-branded clusters supply their own SVG and are unaffected. LGTM.

@lexfrei Aleksei Sviridkin (lexfrei) merged commit cecb486 into main Jun 2, 2026
6 checks passed
@lexfrei Aleksei Sviridkin (lexfrei) deleted the fix/logo-viewbox branch June 2, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ui Issues or PRs related to packages/ui — AppShell, Sidebar, Header, Button, primitives kind/bug Categorizes issue or PR as related to a bug size/XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants