[596] fix: Breadcrumb margins and rendering issues#104
Conversation
- Move margin-top properties from .sf-container to main element - Move breadcrumbs inside main element for proper rendering - Add padding-top to container for better spacing
📝 Walkthrough""" WalkthroughThis change updates the breadcrumb and header styles in SCSS and relocates the breadcrumb template rendering within the main layout HTML. The breadcrumb container's spacing and breakpoint logic are revised, header logo font styling is centralized via a mixin, and breadcrumbs are now rendered inside the main content area with adjusted padding. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant LayoutHTML
participant HeaderFragment
participant BreadcrumbsFragment
participant MainContent
User->>LayoutHTML: Request page
LayoutHTML->>HeaderFragment: Render header
LayoutHTML->>MainContent: Begin main content
MainContent->>BreadcrumbsFragment: Render breadcrumbs (now inside main area)
MainContent->>MainContent: Render page content
Possibly related PRs
Suggested reviewers
Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. Note ⚡️ Faster reviews with cachingCodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 30th. To opt out, configure 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (4)
website/modules/asset/ui/src/scss/_layout.scss (1)
18-24: Optional: Use SCSS variables for header height offsets.
The hardcodedmargin-topvalues of64pxand95pxmirror the header heights defined in_header.scss. Consider introducing SCSS variables (e.g.,$header-height-default: 64px;and$header-height-medium: 95px;) and reusing them here to avoid duplication and simplify future updates.website/views/layout.html (2)
27-27: Enhance breadcrumb accessibility.
Renderingfragments.breadcrumbs()inside<main>aligns it with content spacing. For better semantics and screen‐reader support, wrap the output in a<nav aria-label="Breadcrumb">element (if not already done inside the fragment).
28-28: Move inline style to SCSS.
Inlinestyle="padding-top: 20px"on.sf-containercan hinder maintainability. Extract this rule into an SCSS file (e.g., in_layout.scssor_base.scss) and apply it via a class or selector.website/modules/asset/ui/src/scss/_base.scss (1)
124-127: Consider traditionalmax-widthpattern for wider support.
Whilewidth: min(1280px, 100%)is concise, the more broadly supported approach is:width: 100%; max-width: 1280px;Choose based on your browser compatibility requirements.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
website/modules/asset/ui/src/scss/_base.scss(1 hunks)website/modules/asset/ui/src/scss/_header.scss(2 hunks)website/modules/asset/ui/src/scss/_layout.scss(1 hunks)website/views/layout.html(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
- GitHub Check: e2e-tests
- GitHub Check: unit-tests
- GitHub Check: lint
- GitHub Check: security-scan
🔇 Additional comments (2)
website/views/layout.html (1)
13-13: Approve header placement.
The header fragment remains correctly positioned within thebp-wrapperand outside the<main>element, ensuring it stays fixed and independent of content changes.website/modules/asset/ui/src/scss/_header.scss (1)
38-38: Approve breakpoint font-settings usage.
The@include font-settings(14px, 110%, 800)within the medium breakpoint cleanly adjusts the logo typography for larger screens.
|
LGTM |
eb84c57
|
|
LGTM |



Uh oh!
There was an error while loading. Please reload this page.