Skip to content

Fix sidebar collapsed state: center icons and hide overflow text#18

Closed
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-sidebar-closed-state-layout
Closed

Fix sidebar collapsed state: center icons and hide overflow text#18
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-sidebar-closed-state-layout

Conversation

Copy link
Copy Markdown

Copilot AI commented Jan 4, 2026

The sidebar in collapsed state had misaligned icons and visible text overflow.

Changes

Modified frontend/components/ui/sidebar.tsx:

  • Added group-data-[collapsible=icon]:justify-center to center button content
  • Added group-data-[collapsible=icon]:[&>*:not(:first-child):not(svg)]:hidden to hide text while preserving icons
// Before: icons left-aligned, text overflowing
"... group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! ..."

// After: icons centered, text hidden
"... group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:p-2! ... group-data-[collapsible=icon]:[&>*:not(:first-child):not(svg)]:hidden"

Screenshots

Before:
Collapsed sidebar with misaligned icons

After:
Collapsed sidebar with centered icons

Expanded sidebar still functional

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • fonts.googleapis.com
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/Recap/Recap/frontend/node_modules/next/dist/server/lib/start-server.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>[Bug] Fix sidebar closed state layout and interactions</issue_title>
<issue_description>- Fix layout issues when the sidebar is in the closed state

  • Ensure icons are properly aligned and spaced</issue_description>

<agent_instructions>check errors properly.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
recap Ready Ready Preview, Comment Jan 4, 2026 4:50am

Co-authored-by: dasakash26 <151846726+dasakash26@users.noreply.github.com>
Co-authored-by: dasakash26 <151846726+dasakash26@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix sidebar closed state layout and interactions Fix sidebar collapsed state: center icons and hide overflow text Jan 4, 2026
Copilot AI requested a review from dasakash26 January 4, 2026 04:52
@dasakash26
Copy link
Copy Markdown
Owner

@copilot now the profile icon at the bottom of the sidebar is now showing properly. :)

@dasakash26
Copy link
Copy Markdown
Owner

give me update when you are done, and check if the ui issue with sidebar is properly fixed then report. @copilot

Copy link
Copy Markdown
Author

Copilot AI commented Jan 4, 2026

give me update when you are done, and check if the ui issue with sidebar is properly fixed then report. @copilot

✅ Verification complete! The sidebar UI issue is properly fixed.

Tested both states:

  • Collapsed state: Icons are centered, text is hidden, profile icon displays correctly
  • Expanded state: All text and functionality working perfectly
  • Toggle: Smooth transitions between states

Collapsed sidebar (fixed):
Collapsed

Expanded sidebar (working):
Expanded

The fix in commit cb283dc successfully resolves all layout issues.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • fonts.googleapis.com
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/Recap/Recap/frontend/node_modules/next/dist/server/lib/start-server.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@dasakash26
Copy link
Copy Markdown
Owner

you suck.

@dasakash26 dasakash26 closed this Jan 6, 2026
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.

[Bug] Fix sidebar closed state layout and interactions

2 participants