Skip to content

fix(calm-hub-ui): stop navbar actions covering the logo on narrow screens - #3517

Merged
rocketstack-matt merged 2 commits into
finos:mainfrom
markscott-ms:fix/3505-navbar-logo-overlap
Oct 27, 2026
Merged

rocketstack-matt merged 2 commits into
finos:mainfrom
markscott-ms:fix/3505-navbar-logo-overlap

Conversation

@markscott-ms

Copy link
Copy Markdown
Contributor

Description

Closes #3505.

On narrow screens the diagram View button covered the CALM logo. The logo was absolutely centred, so it took no space in the navbar row. The overlap was 6px at 390px and 41px at 320px. With an environment pill, the logo also covered the pill.

Below lg, the logo is now in the flex flow between two flex-1 side groups. The sides cannot shrink under their content, so:

  • When there is space, the logo stays exactly centred (most pages, and all widths from 414px).
  • When the page actions need more space, the logo moves aside (15px at 390px).
  • On very narrow screens, the logo shrinks with object-contain, so it keeps its aspect ratio.

At lg and above, the layout does not change. The logo keeps the absolute centring.

Width Before After
390px View covers logo by 6px 9px clearance, logo 15px left of centre
320px + env pill Logo covers pill and View Logo shrinks to fit between them
≥ 1024px Centred Same position as before

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🎨 Code style/formatting changes
  • ♻️ Refactoring (no functional changes)
  • ⚡ Performance improvements
  • ✅ Test additions or updates
  • 🔧 Chore (maintenance, dependencies, CI, etc.)

Affected Components

  • CLI (cli/)
  • Schema (calm/)
  • CALM AI (calm-ai/)
  • CALM Hub (calm-hub/)
  • CALM Hub UI (calm-hub-ui/)
  • CALM Lab (calm-lab/)
  • CALM Models (calm-models/)
  • CALM Server (calm-server/)
  • CALM Studio (calm-studio/)
  • CALM Widgets (calm-widgets/)
  • CALMGuard (calm-guard/)
  • Documentation (docs/)
  • Shared (shared/)
  • VS Code Extension (calm-plugins/vscode/)
  • Dependencies
  • CI/CD

Commit Message Format ✅

Testing

  • I have tested my changes locally
  • I have added/updated unit tests
  • All existing tests pass

I measured the navbar in Chromium (Playwright, Vite dev server) at 320–1280px, with and without an environment pill. The View button was a copy of the DiagramSection markup in #navbar-actions. jsdom does no layout, so the new unit tests check only the layout classes.

Checklist

  • My commits follow the conventional commit format
  • I have updated documentation if necessary
  • I have added tests for my changes (if applicable)
  • My changes follow the project's coding standards

…eens

Below lg the logo is now in the flex flow between two flex-1 side groups, so the View button pushes it aside instead of covering it. Desktop keeps the absolute centring.

Closes finos#3505
@markscott-ms
markscott-ms requested a review from a team as a code owner October 26, 2026 22:48
@github-actions github-actions Bot added the calm-hub-ui Affects `calm-hub-ui` label Oct 26, 2026

@rocketstack-matt rocketstack-matt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

With OIDC on, View still covers the logo at 375px and narrower. See the navbar-end comment.

Comment thread calm-hub-ui/src/components/navbar/Navbar.tsx Outdated
Comment thread calm-hub-ui/src/components/navbar/Navbar.tsx Outdated
Comment thread calm-hub-ui/src/components/navbar/Navbar.test.tsx Outdated
@rocketstack-matt
rocketstack-matt merged commit 6c1b420 into finos:main Oct 27, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

calm-hub-ui Affects `calm-hub-ui`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

calm-hub-ui: on a narrow screen the navbar View button covers the CALM logo

2 participants