Skip to content

fix(docs): mobile sidebar hierarchy - #1153

Open
Sbragul26 wants to merge 6 commits into
layer5io:masterfrom
Sbragul26:fix/sidebar-hierarchy
Open

fix(docs): mobile sidebar hierarchy#1153
Sbragul26 wants to merge 6 commits into
layer5io:masterfrom
Sbragul26:fix/sidebar-hierarchy

Conversation

@Sbragul26

@Sbragul26 Sbragul26 commented Jul 11, 2026

Copy link
Copy Markdown
Member

Notes for Reviewers

This PR fixes #1146 by preserving the navigation hierarchy in the mobile sidebar, making it consistent with the desktop view.

Signed commits

  • Yes, I signed my commits.

Summary by CodeRabbit

  • Style
    • Improved responsive indentation for nested items in the left sidebar navigation on smaller screens.

Signed-off-by: Sbragul26 <sbragul26@gmail.com>

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

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.

Code Review

This pull request adds left padding to list elements within the sidebar section in assets/scss/_styles_project.scss. The reviewer suggests scoping this style change to mobile viewports using a media query to prevent unintended layout shifts on desktop screens.

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.

Comment thread assets/scss/_styles_project.scss Outdated
@github-actions

github-actions Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

🚀 Preview deployment: https://docs.layer5.io/pr-preview/pr-1153/

Note: Preview may take a moment (GitHub Pages deployment in progress). Please wait and refresh. Track deployment here

Signed-off-by: Sbragul26 <sbragul26@gmail.com>

@KhushamBansal KhushamBansal left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!!

@Bhumikagarggg

Copy link
Copy Markdown
Contributor

@Sbragul26 Thank you for your contribution! Let's discuss this during the website call today (20 July) at 5:30 PM IST | 7 AM CST Add it as an agenda item to the meeting minutes, if you would 🙂

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 13dc5ab3-5ef1-4041-9cae-4bd233a803dc

📥 Commits

Reviewing files that changed from the base of the PR and between f4bbd97 and cbd1880.

📒 Files selected for processing (1)
  • assets/scss/_styles_project.scss
🚧 Files skipped from review as they are similar to previous changes (1)
  • assets/scss/_styles_project.scss

📝 Walkthrough

Walkthrough

The stylesheet adds a mobile breakpoint rule that indents nested sidebar navigation lists, preserving hierarchy below 768px.

Changes

Mobile sidebar navigation

Layer / File(s) Summary
Responsive nested-list indentation
assets/scss/_styles_project.scss
Adds 1.5em left padding to nested .ul-1 ul lists inside sidebar sections at viewport widths up to 768px.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the mobile sidebar hierarchy fix described by the changes.
Linked Issues check ✅ Passed The responsive indentation rule addresses the linked issue by preserving subsection hierarchy in the mobile sidebar.
Out of Scope Changes check ✅ Passed The six added lines are limited to mobile sidebar indentation and align with the linked issue objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@assets/scss/_styles_project.scss`:
- Around line 240-243: Update the mobile selector in the nested sidebar
navigation styles from `&__section .ul-1 ul` to `& .ul-1 ul` so it targets the
actual tree markup under `.td-sidebar-nav`. Preserve the existing mobile padding
value and surrounding media-query behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 66a3fe83-83da-4519-a62b-f5e03a5e9876

📥 Commits

Reviewing files that changed from the base of the PR and between 102ef3f and f4bbd97.

📒 Files selected for processing (1)
  • assets/scss/_styles_project.scss

Comment thread assets/scss/_styles_project.scss

@Maanvi212006 Maanvi212006 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!
Just address the bot's review

Signed-off-by: Ragul Balajii <147516811+Sbragul26@users.noreply.github.com>
Signed-off-by: Ragul Balajii <147516811+Sbragul26@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Mobile sidebar does not preserve navigation hierarchy

4 participants