-
Notifications
You must be signed in to change notification settings - Fork 5.5k
fix(web): stop sidebar rows flashing and shifting on click #10713
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -699,7 +699,14 @@ function SidebarContent({ | |
| return ( | ||
| <> | ||
| {fixedHeader ? <div className="w-full shrink-0">{fixedHeader}</div> : null} | ||
| <ScrollArea hideScrollbars scrollFade className="h-auto min-h-0 flex-1"> | ||
| {/* Rows take focus on click. Scroll padding would make the browser nudge | ||
| the list whenever a focused row sits under the fade. */} | ||
| <ScrollArea | ||
| hideScrollbars | ||
| scrollFade | ||
| scrollFadePadding={false} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Keep a fade inset for thread search results.
🤖 Prompt for AI Agents |
||
| className="h-auto min-h-0 flex-1" | ||
| > | ||
| <div | ||
| className={cn( | ||
| "flex w-full min-w-0 flex-col gap-2 group-data-[collapsible=icon]:overflow-hidden", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🤖 get_repo_knowledge executed:
get_repo_knowledge pingdotgg/t3code /tmp/coderabbit-repo-knowledge/pingdotgg-t3code-ca3faa49/learnings /tmp/coderabbit-repo-knowledge/pingdotgg-t3code-ca3faa49/conventionsLength of output: 2531
🏁 Script executed:
Repository: pingdotgg/t3code
Length of output: 23157
🏁 Script executed:
Repository: pingdotgg/t3code
Length of output: 13058
🏁 Script executed:
Repository: pingdotgg/t3code
Length of output: 17633
🤖 get_repo_knowledge executed:
get_repo_knowledge pingdotgg/t3code /tmp/coderabbit-repo-knowledge/pingdotgg-t3code-ca3faa49Length of output: 1521
🌐 Web query:
github pingdotgg/t3code Sidebar.tsx createSidebarListMotion💡 Result:
Based on a review of the pingdotgg/t3code repository on GitHub, there is no evidence of a function or component named createSidebarListMotion in Sidebar.tsx or elsewhere in the project. The Sidebar component in this repository uses various state management tools and UI patterns [1][2], but the specific identifier createSidebarListMotion does not exist in the codebase. Animations in similar sidebar components often rely on standard framer-motion patterns [3][4][5], but this specific naming convention is not utilized in the pingdotgg/t3code project.
Citations:
🏁 Script executed:
Repository: pingdotgg/t3code
Length of output: 11154
Include visible draft IDs and order in
sidebarListOrderKey.SidebarDraftBlockfilters and sorts drafts byscopedProjectKeys, butsidebarListOrderKeyomits them. A scope change can replace one draft with another while the count androuteDraftIdForRowsremain unchanged, so the layout effect does not calllistMotionRef.current?.update(...).createSidebarListMotiontracks DOM element identities and cannot detect the replacement until a later update.🤖 Prompt for AI Agents