Skip to content

fix(web): sit the New Project button properly beside its title - #14169

Open
raunakab wants to merge 1 commit into
mainfrom
fix/project-fixes
Open

fix(web): sit the New Project button properly beside its title#14169
raunakab wants to merge 1 commit into
mainfrom
fix/project-fixes

Conversation

@raunakab

@raunakab raunakab commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Description

The "New Project" button beside the sidebar's "Projects" title was a size smaller than the row it shares, so it read as an afterthought rather than that section's action. It is now size="md", matching the title row.

Spacing moves with it. The section header owns its own top padding and right inset, and the title its own vertical padding, rather than the gaps being spread across .opal-sidebar-header and .opal-sidebar-body__content. Net effect is the same rhythm between sections, with the header row sized around its own contents.

Note that .opal-sidebar-section__header and __title are shared by every SidebarLayouts.Section, so Recents and Projects both shift.

Screenshots + Videos

Before

("Close Sidebar" button and "New Project" button are out-of-alignment.)

image

After

("Close Sidebar" button and "New Project" button are now in full alignment.)

image

Additional Options

  • [Optional] Please cherry-pick this PR to the latest release version.
  • [Optional] Override Linear Check

Summary by cubic

Aligns the New Project button with the Projects header row to match visual hierarchy. Previously the button was size "sm" and looked smaller; now it’s "md", with spacing shifted to the section header/title so the row sizes around its contents. Shared header/title styles mean Recents also adopts the new spacing, while overall section rhythm stays the same.

Review notes

  • Verify the New Project button height matches the “Projects” label and sits flush on the header row.
  • Confirm section spacing: header owns top/right padding; title owns vertical padding; body content no longer carries extra gap/padding.
  • Check Recents header for the same alignment and spacing; no logic changes or migrations required.

Written for commit fd50241. Summary will update on new commits.

Review in cubic

The button was a size smaller than the row it shares with the "Projects"
title, so it read as an afterthought rather than that section's action.

Spacing moves with it: the section header carries its own top padding and
right inset now, and the title its own vertical padding, instead of the
gaps being spread across the sidebar body and header.
@raunakab
raunakab requested a review from a team as a code owner August 22, 2026 04:57
@github-actions

Copy link
Copy Markdown
Contributor

Full-stack Preview (frontend + backend)

Status Preview Commit Updated
https://fd50241-onyx.preview.onyxcorp.dev/ fd50241 2026-08-22 05:00:23 UTC

Sign in with GitHub as an onyx-dot-app member to view it.

@greptile-apps

greptile-apps Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR enlarges the sidebar’s New Project action and relocates vertical spacing from shared header/body containers into section headers and titles.

  • Changes the New Project button from small to medium.
  • Adjusts shared sidebar section padding and right inset.
  • Removes generic bottom and inter-child spacing, which breaks sidebar bodies that rely on the shared body gap.

Confidence Score: 4/5

The PR should not merge until shared body spacing is preserved for sidebar consumers that do not receive the new section-header padding.

Removing the shared body gap makes AdminSidebar’s explicit spacer inert and drops spacing around raw SidebarLayouts.Body children.

Files Needing Attention: web/lib/opal/src/layouts/sidebar/styles.css

Important Files Changed

Filename Overview
web/lib/opal/src/layouts/sidebar/styles.css Relocates shared sidebar spacing, but removing the body gap breaks non-section children and AdminSidebar’s explicit gap-based spacer.
web/src/sections/sidebar/AppSidebar.tsx Enlarges the New Project icon button to match the section-header row without an independently established defect.
Prompt To Fix All With AI
### Issue 1
web/lib/opal/src/layouts/sidebar/styles.css:155
**Body gap removal collapses spacing**

When `SidebarLayouts.Body` contains non-section children, removing `gap-2` provides no replacement spacing, causing AdminSidebar's explicit gap-based spacer to become inert and raw CreateConnectorSidebar children to lose their half-rem separation.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Reviews (1): Last reviewed commit: "fix(web): sit the New Project button pro..." | Re-trigger Greptile

Comment thread web/lib/opal/src/layouts/sidebar/styles.css

@cubic-dev-ai cubic-dev-ai 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.

All reported issues were addressed across 2 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread web/lib/opal/src/layouts/sidebar/styles.css
@github-actions

Copy link
Copy Markdown
Contributor

Preview Deployment

Status Preview Commit Updated
https://onyx-preview-ctpjv1lva-danswer.vercel.app fd50241 2026-08-22 05:01:39 UTC

@github-actions

Copy link
Copy Markdown
Contributor

🖼️ Visual Regression Report

Project Changed Added Removed Unchanged Report
admin 65 0 0 122 View Report
exclusive 2 0 0 8 View Report

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.

1 participant