Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: Remove left margin on sidebar-inset when variant=inset, state=collapsed and collapsible=icon#2339

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ma-r-s wants to merge3 commits intohuntabyte:main
base:main
Choose a base branch
Loading
fromma-r-s:sidebar-fix

Conversation

@ma-r-s
Copy link

Problem
Whenvariant="inset",state="collapsed", andcollapsible="icon", the sidebar becomes misaligned due to the inset's left margin.

Solution
Added the following Tailwind utility to remove the margin in this specific state:
md:peer-data-[variant=inset]:peer-data-[state=collapsed]:peer-data-[collapsible=icon]:ml-0

Result
This ensures the sidebar aligns correctly in this specific situation.

Testing

  1. Setvariant="inset" andcollapsible="icon" on the sidebar.
  2. Collapse it.
  3. Sidebar now remains properly aligned.

…ns whensidebar is in inset variant, collapsed state, and icon collapsible mode.
@changeset-bot
Copy link

changeset-botbot commentedOct 9, 2025
edited
Loading

⚠️ No Changeset found

Latest commit:8e8e7b8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go.If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

CopilotAI review requested due to automatic review settingsOctober 23, 2025 20:21
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a sidebar alignment issue when using specific configuration options. When the sidebar is configured withvariant="inset",state="collapsed", andcollapsible="icon", the inset's left margin causes misalignment.

Key Changes:

  • Added a Tailwind utility class to override the left margin specifically when all three conditions are met (variant=inset, state=collapsed, collapsible=icon)

Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@ma-r-s

[8]ページ先頭

©2009-2025 Movatter.jp