-
Notifications
You must be signed in to change notification settings - Fork 2
fix(mobile): Clean up action buttons, layout, and remove duplicate sidebar toggle #1001
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
a689b44
893e11b
5ee15a8
5ac3109
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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -136,8 +136,8 @@ export function AppShell({ | |||||||||
| {sidebar} | ||||||||||
| <SidebarInset> | ||||||||||
| <header className="flex h-14 sm:h-16 shrink-0 items-center gap-2 border-b bg-background px-2 sm:px-4"> | ||||||||||
| <SidebarTrigger className="-ml-1" /> | ||||||||||
| <div className="w-px h-4 bg-border mx-1 sm:mx-2" /> | ||||||||||
| <SidebarTrigger className="-ml-1 hidden md:inline-flex" /> | ||||||||||
| <div className="w-px h-4 bg-border mx-1 sm:mx-2 hidden md:block" /> | ||||||||||
|
Comment on lines
+139
to
+140
|
||||||||||
| <SidebarTrigger className="-ml-1 hidden md:inline-flex" /> | |
| <div className="w-px h-4 bg-border mx-1 sm:mx-2 hidden md:block" /> | |
| <SidebarTrigger className="-ml-1 inline-flex" /> | |
| <div className="w-px h-4 bg-border mx-1 sm:mx-2 block" /> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -195,9 +195,9 @@ export const DetailSection: React.FC<DetailSectionProps> = ({ | |
| className={cn( | ||
| "grid gap-3 sm:gap-4", | ||
| effectiveColumns === 1 ? "grid-cols-1" : | ||
| effectiveColumns === 2 ? "grid-cols-1 md:grid-cols-2" : | ||
| effectiveColumns === 3 ? "grid-cols-1 md:grid-cols-2 lg:grid-cols-3" : | ||
| "grid-cols-1 md:grid-cols-2 lg:grid-cols-3" | ||
| effectiveColumns === 2 ? "grid-cols-1 sm:grid-cols-2" : | ||
| effectiveColumns === 3 ? "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3" : | ||
| "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3" | ||
|
Comment on lines
+198
to
+200
|
||
| )} | ||
| > | ||
| {layoutFields.map(renderField)} | ||
|
|
||
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.
useIsMobile()relies onwindow.matchMedia()(andaddEventListener) without a guard. Now that ActionBar always calls it, environments that don't provide matchMedia (unit tests, some non-browser runtimes) will throw during effect execution. Either makeuseIsMobileresilient whenwindow.matchMediais missing, or provide a global matchMedia mock in the test setup so ActionBar rendering can't crash.