Skip to content

fix: Adjust sidebar logo and item highlighting for desktop #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

yours7himanshu
Copy link
Owner

This commit addresses your feedback regarding the main sidebar's appearance on desktop devices and reverts the logo to a more 'usual' style.

Key changes:

  1. Logo Reversion (Logo.jsx):

    • Removed specific styling (shadow, border, explicit padding, w-full) from the Logo.jsx component.
    • Increased image height to h-14 and text size to text-2xl to be closer to its previous appearance.
    • The logo component is now more neutrally styled, relying on its parent container for presentation.
  2. Sidebar Logo Container (Sidebar.jsx):

    • Added p-4 for spacing to the sticky div wrapping the Logo component.
    • Applied the sidebar's gradient background to this container and used negative horizontal margins (-mx-3) to ensure the logo section's background is full-bleed against the ul's new padding, maintaining visual consistency.
  3. Sidebar Item Highlighting Fix (Sidebar.jsx):

    • Removed md:ml-10 from the main ul within SidebarContent.
    • Added px-3 to the ul for consistent internal horizontal padding.
    • Removed horizontal padding from the scrollable div (it now defers to ul's padding).
    • Removed mr-4 from the logout button's container.
    • These changes ensure that w-full list items (and their active/hover backgrounds) are correctly contained within the sidebar's padded width on desktop screens, resolving the issue where backgrounds were previously too wide.

The smartphone responsiveness remains unaffected and should continue to work well.

This commit addresses your feedback regarding the main sidebar's appearance on desktop devices and reverts the logo to a more 'usual' style.

Key changes:

1.  **Logo Reversion (`Logo.jsx`):**
    *   Removed specific styling (shadow, border, explicit padding, w-full) from the `Logo.jsx` component.
    *   Increased image height to `h-14` and text size to `text-2xl` to be closer to its previous appearance.
    *   The logo component is now more neutrally styled, relying on its parent container for presentation.

2.  **Sidebar Logo Container (`Sidebar.jsx`):**
    *   Added `p-4` for spacing to the sticky `div` wrapping the `Logo` component.
    *   Applied the sidebar's gradient background to this container and used negative horizontal margins (`-mx-3`) to ensure the logo section's background is full-bleed against the `ul`'s new padding, maintaining visual consistency.

3.  **Sidebar Item Highlighting Fix (`Sidebar.jsx`):**
    *   Removed `md:ml-10` from the main `ul` within `SidebarContent`.
    *   Added `px-3` to the `ul` for consistent internal horizontal padding.
    *   Removed horizontal padding from the scrollable `div` (it now defers to `ul`'s padding).
    *   Removed `mr-4` from the logout button's container.
    *   These changes ensure that `w-full` list items (and their active/hover backgrounds) are correctly contained within the sidebar's padded width on desktop screens, resolving the issue where backgrounds were previously too wide.

The smartphone responsiveness remains unaffected and should continue to work well.
Copy link

vercel bot commented Jun 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
virtual-classroom-admin 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jun 18, 2025 9:24pm
virtual-classroom-application 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jun 18, 2025 9:24pm

Copy link

netlify bot commented Jun 18, 2025

Deploy Preview for glittering-fox-ced801 ready!

Name Link
🔨 Latest commit 4d11165
🔍 Latest deploy log https://app.netlify.com/projects/glittering-fox-ced801/deploys/68532e7ae5b55d0008f5bab0
😎 Deploy Preview https://deploy-preview-104--glittering-fox-ced801.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@yours7himanshu yours7himanshu merged commit 605f2bb into main Jun 18, 2025
5 of 12 checks passed
Copy link
Contributor

deepsource-io bot commented Jun 18, 2025

Here's the code health analysis summary for commits 889edff..4d11165. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript❌ Failure
❗ 3 occurences introduced
🎯 3 occurences resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

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