Skip to content

[596] fix: Breadcrumb margins and rendering issues#104

Merged
VitalyyP merged 8 commits intomainfrom
596-fix/breadcrumb-margins-and-render-issue
May 21, 2025
Merged

[596] fix: Breadcrumb margins and rendering issues#104
VitalyyP merged 8 commits intomainfrom
596-fix/breadcrumb-margins-and-render-issue

Conversation

@VitalyyP
Copy link
Contributor

@VitalyyP VitalyyP commented May 20, 2025

  • Fix breadcrumb container width and positioning
  • Add proper padding instead of margins for breadcrumb nav
  • Move breadcrumbs inside main content area
  • Adjust spacing for main content area
  • Fix header logo font settings

VitalyyP added 2 commits May 20, 2025 19:51
- 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
@VitalyyP VitalyyP requested a review from killev as a code owner May 20, 2025 18:03
@coderabbitai
Copy link
Contributor

coderabbitai bot commented May 20, 2025

📝 Walkthrough

"""

Walkthrough

This 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

File(s) Change Summary
website/modules/asset/ui/src/scss/_base.scss Modified .breadcrumb styles: adjusted padding, added height, and removed medium breakpoint padding.
website/modules/asset/ui/src/scss/_header.scss Updated .sf-logo font styling to use font-settings mixin, consolidating font-size, line-height, and weight.
website/views/layout.html Moved breadcrumb fragment rendering inside the main content area before container div and added container padding.

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
Loading

Possibly related PRs

Suggested reviewers

  • yuramax
  • Anton-88
    """

Note

⚡️ AI Code Reviews for VS Code, Cursor, Windsurf

CodeRabbit 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.
Learn more here.


Note

⚡️ Faster reviews with caching

CodeRabbit 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 Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.
Enjoy the performance boost—your workflow just got faster.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between eb84c57 and a6f0cf3.

📒 Files selected for processing (1)
  • website/modules/asset/ui/src/scss/_base.scss (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • website/modules/asset/ui/src/scss/_base.scss
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: lint
  • GitHub Check: unit-tests
  • GitHub Check: e2e-tests
  • GitHub Check: security-scan

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need 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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@VitalyyP VitalyyP changed the title Fix breadcrumb margins and rendering position fix: Breadcrumb margins and rendering issues May 20, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

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 hardcoded margin-top values of 64px and 95px mirror 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.
Rendering fragments.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.
Inline style="padding-top: 20px" on .sf-container can hinder maintainability. Extract this rule into an SCSS file (e.g., in _layout.scss or _base.scss) and apply it via a class or selector.

website/modules/asset/ui/src/scss/_base.scss (1)

124-127: Consider traditional max-width pattern for wider support.
While width: 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

📥 Commits

Reviewing files that changed from the base of the PR and between bce0e0f and e040547.

📒 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 the bp-wrapper and 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.

@github-actions
Copy link

github-actions bot commented May 20, 2025

🔍 Vulnerabilities of apostrophe-cms:test

📦 Image Reference apostrophe-cms:test
digestsha256:2d0f9ce18eff95b5672be20026c3fc25d87e91282a28c5bd67e0cf483d54d1da
vulnerabilitiescritical: 0 high: 3 medium: 0 low: 0
platformlinux/amd64
size284 MB
packages935
📦 Base Image node:23-alpine
also known as
  • 23-alpine3.21
  • 23.11-alpine
  • 23.11-alpine3.21
  • 23.11.1-alpine
  • 23.11.1-alpine3.21
digestsha256:169ee1b69bd3f5c7c8508a9919e8b367bba9dc7fa9a03097ec9f85d2e8179631
vulnerabilitiescritical: 0 high: 0 medium: 0 low: 0
critical: 0 high: 1 medium: 0 low: 0 async 1.5.2 (npm)

pkg:npm/async@1.5.2

high 7.8: CVE--2021--43138 OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities

Affected range<2.6.4
Fixed version2.6.4, 3.2.2
CVSS Score7.8
CVSS VectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS Score1.061%
EPSS Percentile77th percentile
Description

A vulnerability exists in Async through 3.2.1 (fixed in 3.2.2), which could let a malicious user obtain privileges via the mapValues() method.

critical: 0 high: 1 medium: 0 low: 0 connect-multiparty 2.2.0 (npm)

pkg:npm/connect-multiparty@2.2.0

high 7.8: CVE--2022--29623 Unrestricted Upload of File with Dangerous Type

Affected range<=2.2.0
Fixed versionNot Fixed
CVSS Score7.8
CVSS VectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS Score0.100%
EPSS Percentile29th percentile
Description

An arbitrary file upload vulnerability in the file upload module of Express Connect-Multiparty 2.2.0 allows attackers to execute arbitrary code via a crafted PDF file. NOTE: the Supplier has not verified this vulnerability report.

critical: 0 high: 1 medium: 0 low: 0 async 0.9.2 (npm)

pkg:npm/async@0.9.2

high 7.8: CVE--2021--43138 OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities

Affected range<2.6.4
Fixed version2.6.4, 3.2.2
CVSS Score7.8
CVSS VectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS Score1.061%
EPSS Percentile77th percentile
Description

A vulnerability exists in Async through 3.2.1 (fixed in 3.2.2), which could let a malicious user obtain privileges via the mapValues() method.

coderabbitai[bot]
coderabbitai bot previously approved these changes May 20, 2025
Copy link
Contributor Author

@VitalyyP VitalyyP left a comment

Choose a reason for hiding this comment

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

Done

@VitalyyP VitalyyP self-assigned this May 20, 2025
@VitalyyP VitalyyP changed the title fix: Breadcrumb margins and rendering issues [596] fix: Breadcrumb margins and rendering issues May 20, 2025
coderabbitai[bot]
coderabbitai bot previously approved these changes May 20, 2025
yuramax
yuramax previously approved these changes May 20, 2025
Copy link
Contributor

@yuramax yuramax left a comment

Choose a reason for hiding this comment

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

LGTM

Anton-88
Anton-88 previously approved these changes May 20, 2025
Copy link
Contributor

@Anton-88 Anton-88 left a comment

Choose a reason for hiding this comment

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

LGTM

IhorMasechko
IhorMasechko previously approved these changes May 21, 2025
Copy link
Contributor

@IhorMasechko IhorMasechko left a comment

Choose a reason for hiding this comment

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

LGTM

@VitalyyP VitalyyP enabled auto-merge (squash) May 21, 2025 07:01
@VitalyyP VitalyyP requested a review from vasilyyaremchuk May 21, 2025 11:38
@vasilyyaremchuk
Copy link
Collaborator

LGTM

@VitalyyP VitalyyP dismissed stale reviews from yuramax, Anton-88, and IhorMasechko via eb84c57 May 21, 2025 13:16
coderabbitai[bot]
coderabbitai bot previously approved these changes May 21, 2025
@sonarqubecloud
Copy link

Copy link
Collaborator

@killev killev left a comment

Choose a reason for hiding this comment

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

LGTM, Approve

@VitalyyP VitalyyP merged commit 0a1be2a into main May 21, 2025
12 checks passed
@VitalyyP VitalyyP deleted the 596-fix/breadcrumb-margins-and-render-issue branch May 21, 2025 13:44
@vasilyyaremchuk
Copy link
Collaborator

LGTM

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.

6 participants

Comments