Skip to content

Commit df2236d

Browse files
BenTaylorDevclaude
andcommitted
fix(examples/threads): hide the locked threads panel on mobile
The no-license locked panel is a fixed-width (w-80 / 18-20rem) block. In the single-column mobile grid it left a dead background strip beside it and pushed the app content down. Hide it below 1024px (max-lg:hidden / .lockedPanel display:none) — consistent with the real drawer + first-paint placeholder, which also reserve no column on mobile. Content now gets the full width. Applied across all 7 migrated examples. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 0c962fe commit df2236d

7 files changed

Lines changed: 22 additions & 4 deletions

File tree

examples/integrations/adk/src/components/threads-drawer/locked-state.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function ThreadsPanelGate({ children }: { children: React.ReactNode }) {
3030
}
3131

3232
return (
33-
<div className="flex w-80 shrink-0 flex-col items-center justify-center p-4 bg-[var(--threads-drawer-bg,var(--card))] border-r border-[var(--threads-drawer-border,var(--border))]">
33+
<div className="flex w-80 shrink-0 flex-col items-center justify-center p-4 bg-[var(--threads-drawer-bg,var(--card))] border-r border-[var(--threads-drawer-border,var(--border))] max-lg:hidden">
3434
<Card className="w-full">
3535
<CardHeader>
3636
<div className="mb-2 flex h-10 w-10 items-center justify-center rounded-full bg-[var(--secondary)]">

examples/integrations/agno/src/components/threads-drawer/locked-state.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function ThreadsPanelGate({ children }: { children: React.ReactNode }) {
3030
}
3131

3232
return (
33-
<div className="flex w-80 shrink-0 flex-col items-center justify-center p-4 bg-[var(--threads-drawer-bg,var(--card))] border-r border-[var(--threads-drawer-border,var(--border))]">
33+
<div className="flex w-80 shrink-0 flex-col items-center justify-center p-4 bg-[var(--threads-drawer-bg,var(--card))] border-r border-[var(--threads-drawer-border,var(--border))] max-lg:hidden">
3434
<Card className="w-full">
3535
<CardHeader>
3636
<div className="mb-2 flex h-10 w-10 items-center justify-center rounded-full bg-[var(--secondary)]">

examples/integrations/langgraph-js/src/components/threads-drawer/locked-state.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function ThreadsPanelGate({ children }: { children: React.ReactNode }) {
3030
}
3131

3232
return (
33-
<div className="flex w-80 shrink-0 flex-col items-center justify-center p-4 bg-[var(--threads-drawer-bg,var(--card))] border-r border-[var(--threads-drawer-border,var(--border))]">
33+
<div className="flex w-80 shrink-0 flex-col items-center justify-center p-4 bg-[var(--threads-drawer-bg,var(--card))] border-r border-[var(--threads-drawer-border,var(--border))] max-lg:hidden">
3434
<Card className="w-full">
3535
<CardHeader>
3636
<div className="mb-2 flex h-10 w-10 items-center justify-center rounded-full bg-[var(--secondary)]">

examples/integrations/langgraph-python/src/components/threads-drawer/locked-state.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function ThreadsPanelGate({ children }: { children: React.ReactNode }) {
3030
}
3131

3232
return (
33-
<div className="flex w-80 shrink-0 flex-col items-center justify-center p-4 bg-[var(--threads-drawer-bg,var(--card))] border-r border-[var(--threads-drawer-border,var(--border))]">
33+
<div className="flex w-80 shrink-0 flex-col items-center justify-center p-4 bg-[var(--threads-drawer-bg,var(--card))] border-r border-[var(--threads-drawer-border,var(--border))] max-lg:hidden">
3434
<Card className="w-full">
3535
<CardHeader>
3636
<div className="mb-2 flex h-10 w-10 items-center justify-center rounded-full bg-[var(--secondary)]">

examples/integrations/mastra/src/components/threads-drawer/threads-drawer.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,12 @@
839839
display: none;
840840
}
841841

842+
/* No-license locked panel: hide on mobile (no interactive drawer to launch,
843+
and a fixed-width panel leaves a dead column). */
844+
.lockedPanel {
845+
display: none;
846+
}
847+
842848
/* Collapsed: a small floating launcher pinned top-left, above the full-screen
843849
mobile chat (z-index 1200) so threads stay reachable over it. */
844850
.drawer.drawerClosed {

examples/integrations/ms-agent-framework-dotnet/src/components/threads-drawer/threads-drawer.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,12 @@
837837
display: none;
838838
}
839839

840+
/* No-license locked panel: hide on mobile (no interactive drawer to launch,
841+
and a fixed-width panel leaves a dead column). */
842+
.lockedPanel {
843+
display: none;
844+
}
845+
840846
/* Collapsed: a small floating launcher pinned top-left, above the full-screen
841847
mobile chat (z-index 1200) so threads stay reachable over it. */
842848
.drawer.drawerClosed {

examples/integrations/ms-agent-framework-python/src/components/threads-drawer/threads-drawer.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,12 @@
837837
display: none;
838838
}
839839

840+
/* No-license locked panel: hide on mobile (no interactive drawer to launch,
841+
and a fixed-width panel leaves a dead column). */
842+
.lockedPanel {
843+
display: none;
844+
}
845+
840846
/* Collapsed: a small floating launcher pinned top-left, above the full-screen
841847
mobile chat (z-index 1200) so threads stay reachable over it. */
842848
.drawer.drawerClosed {

0 commit comments

Comments
 (0)