@designa8/vibedesign-linear-internal-v1-b737 0.12.5 → 0.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +11 -8
- package/dist/index.js +11 -8
- package/dist/styles.css +3 -0
- package/package.json +1 -1
- package/src/molecules/CodePreview/CodePreview.tsx +6 -1
- package/src/molecules/CodePreview/preview.tsx +8 -1
- package/src/molecules/DropdownMenu/DropdownMenu.tsx +2 -1
- package/src/organisms/ChatWindow/ChatWindow.tsx +2 -1
- package/src/organisms/CodeEditor/CodeEditor.tsx +4 -1
- package/src/organisms/Drawer/Drawer.tsx +3 -1
- package/src/organisms/Modal/Modal.tsx +2 -1
- package/src/organisms/PromptInputBar/PromptInputBar.tsx +3 -1
- package/src/organisms/SidebarDesktop/SidebarDesktop.tsx +3 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-linear-internal-v1-b737
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.12.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.12.6**.
|
|
4
4
|
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
5
|
never hardcode visual values in consumer code.
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -2965,6 +2965,7 @@ var CodePreview = React33.forwardRef(
|
|
|
2965
2965
|
}).catch(() => {
|
|
2966
2966
|
});
|
|
2967
2967
|
};
|
|
2968
|
+
const overscroll = wrap ? "overscroll-y-contain" : "overscroll-contain";
|
|
2968
2969
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2969
2970
|
"div",
|
|
2970
2971
|
{
|
|
@@ -2996,7 +2997,8 @@ var CodePreview = React33.forwardRef(
|
|
|
2996
2997
|
"aria-label": capped ? ariaLabel : void 0,
|
|
2997
2998
|
className: cn22(
|
|
2998
2999
|
"px-md py-sm font-mono text-caption focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue",
|
|
2999
|
-
capped && "max-h-64 overflow-y-auto
|
|
3000
|
+
capped && "max-h-64 overflow-y-auto",
|
|
3001
|
+
capped && overscroll,
|
|
3000
3002
|
!wrap && "overflow-x-auto"
|
|
3001
3003
|
),
|
|
3002
3004
|
children: rows.map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex gap-md", children: [
|
|
@@ -4467,7 +4469,7 @@ var DropdownMenu = React40.forwardRef(
|
|
|
4467
4469
|
children: header
|
|
4468
4470
|
}
|
|
4469
4471
|
) : null,
|
|
4470
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "min-h-0 flex-1 overflow-y-auto overscroll-contain p-xs", children: items.map((entry, index) => {
|
|
4472
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "min-h-0 flex-1 overflow-y-auto overscroll-y-contain p-xs", children: items.map((entry, index) => {
|
|
4471
4473
|
if (isSeparator(entry)) {
|
|
4472
4474
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Divider, { tone: "soft", className: "my-xs" }, entry.id);
|
|
4473
4475
|
}
|
|
@@ -6791,7 +6793,8 @@ var Modal = React58.forwardRef(
|
|
|
6791
6793
|
"div",
|
|
6792
6794
|
{
|
|
6793
6795
|
className: cn45(
|
|
6794
|
-
|
|
6796
|
+
// Vertical-only containment keeps the horizontal back/forward swipe working.
|
|
6797
|
+
"min-h-0 flex-1 overflow-y-auto overscroll-y-contain px-lg pb-lg",
|
|
6795
6798
|
hasHeader ? "pt-xs" : "pt-lg",
|
|
6796
6799
|
bodyClassName
|
|
6797
6800
|
),
|
|
@@ -7726,7 +7729,7 @@ var ChatWindow = React63.forwardRef(
|
|
|
7726
7729
|
role: "log",
|
|
7727
7730
|
"aria-label": "Messages",
|
|
7728
7731
|
"aria-live": "polite",
|
|
7729
|
-
className: "flex min-h-64 max-h-96 flex-col gap-lg overflow-y-auto overscroll-contain px-base py-base",
|
|
7732
|
+
className: "flex min-h-64 max-h-96 flex-col gap-lg overflow-y-auto overscroll-y-contain px-base py-base",
|
|
7730
7733
|
children: threads.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-1 flex-col items-center justify-center gap-xs py-xl text-center", children: [
|
|
7731
7734
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, { name: "message-circle", size: 32, strokeWidth: 1.5, className: "text-muted-soft" }),
|
|
7732
7735
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: "mt-sm text-heading-sm text-ink", children: emptyTitle }),
|
|
@@ -8074,7 +8077,7 @@ var CodeEditor = React64.forwardRef(
|
|
|
8074
8077
|
),
|
|
8075
8078
|
...rest,
|
|
8076
8079
|
children: [
|
|
8077
|
-
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("aside", { className: "flex w-56 min-h-0 shrink-0 flex-col overflow-y-auto overscroll-contain border-r border-hairline bg-canvas", children: [
|
|
8080
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("aside", { className: "flex w-56 min-h-0 shrink-0 flex-col overflow-y-auto overscroll-y-contain border-r border-hairline bg-canvas", children: [
|
|
8078
8081
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "flex items-center px-base py-md", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-overline text-muted-soft", children: "Files" }) }),
|
|
8079
8082
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("nav", { className: "flex flex-col gap-xxs px-sm pb-base", "aria-label": "Files", children: [
|
|
8080
8083
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
@@ -9000,7 +9003,7 @@ var Drawer = React70.forwardRef(
|
|
|
9000
9003
|
"div",
|
|
9001
9004
|
{
|
|
9002
9005
|
className: cn55(
|
|
9003
|
-
"min-h-0 flex-1 overflow-y-auto overscroll-contain px-base pb-base pt-xs",
|
|
9006
|
+
"min-h-0 flex-1 overflow-y-auto overscroll-y-contain px-base pb-base pt-xs",
|
|
9004
9007
|
bodyClassName
|
|
9005
9008
|
),
|
|
9006
9009
|
children
|
|
@@ -11203,7 +11206,7 @@ var PromptInputBar = React89.forwardRef(
|
|
|
11203
11206
|
zIndex: "var(--z-popover, 1300)"
|
|
11204
11207
|
},
|
|
11205
11208
|
className: MENU_PANEL,
|
|
11206
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex min-h-0 flex-1 flex-col gap-xxs overflow-y-auto overscroll-contain", children: [
|
|
11209
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex min-h-0 flex-1 flex-col gap-xxs overflow-y-auto overscroll-y-contain", children: [
|
|
11207
11210
|
hasModels ? /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-xxs", children: [
|
|
11208
11211
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { className: "px-sm pb-xxs pt-xs text-overline text-muted", children: "Model" }),
|
|
11209
11212
|
models?.map((m) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
@@ -11921,7 +11924,7 @@ var SidebarDesktop = React91.forwardRef(
|
|
|
11921
11924
|
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(IconButton, { icon: "panel-left", variant: "secondary", "aria-label": "Collapse sidebar", onClick: toggle })
|
|
11922
11925
|
] }),
|
|
11923
11926
|
!workspaceAtBottom && workspaceRow,
|
|
11924
|
-
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("nav", { "aria-label": "Main", className: cn70("min-h-0 flex-1 overflow-y-auto overscroll-contain pb-sm", collapsed ? "px-0" : "px-sm"), children: sections.map((section, i) => {
|
|
11927
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("nav", { "aria-label": "Main", className: cn70("min-h-0 flex-1 overflow-y-auto overscroll-y-contain pb-sm", collapsed ? "px-0" : "px-sm"), children: sections.map((section, i) => {
|
|
11925
11928
|
const sectionOpen = !section.label || isOpen(section.id);
|
|
11926
11929
|
const listId = `${baseId}-section-${section.id}`;
|
|
11927
11930
|
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: i > 0 ? "mt-base" : void 0, children: [
|
package/dist/index.js
CHANGED
|
@@ -2820,6 +2820,7 @@ var CodePreview = React33.forwardRef(
|
|
|
2820
2820
|
}).catch(() => {
|
|
2821
2821
|
});
|
|
2822
2822
|
};
|
|
2823
|
+
const overscroll = wrap ? "overscroll-y-contain" : "overscroll-contain";
|
|
2823
2824
|
return /* @__PURE__ */ jsxs27(
|
|
2824
2825
|
"div",
|
|
2825
2826
|
{
|
|
@@ -2851,7 +2852,8 @@ var CodePreview = React33.forwardRef(
|
|
|
2851
2852
|
"aria-label": capped ? ariaLabel : void 0,
|
|
2852
2853
|
className: cn22(
|
|
2853
2854
|
"px-md py-sm font-mono text-caption focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue",
|
|
2854
|
-
capped && "max-h-64 overflow-y-auto
|
|
2855
|
+
capped && "max-h-64 overflow-y-auto",
|
|
2856
|
+
capped && overscroll,
|
|
2855
2857
|
!wrap && "overflow-x-auto"
|
|
2856
2858
|
),
|
|
2857
2859
|
children: rows.map((line, index) => /* @__PURE__ */ jsxs27("div", { className: "flex gap-md", children: [
|
|
@@ -4322,7 +4324,7 @@ var DropdownMenu = React40.forwardRef(
|
|
|
4322
4324
|
children: header
|
|
4323
4325
|
}
|
|
4324
4326
|
) : null,
|
|
4325
|
-
/* @__PURE__ */ jsx40("div", { className: "min-h-0 flex-1 overflow-y-auto overscroll-contain p-xs", children: items.map((entry, index) => {
|
|
4327
|
+
/* @__PURE__ */ jsx40("div", { className: "min-h-0 flex-1 overflow-y-auto overscroll-y-contain p-xs", children: items.map((entry, index) => {
|
|
4326
4328
|
if (isSeparator(entry)) {
|
|
4327
4329
|
return /* @__PURE__ */ jsx40(Divider, { tone: "soft", className: "my-xs" }, entry.id);
|
|
4328
4330
|
}
|
|
@@ -6646,7 +6648,8 @@ var Modal = React58.forwardRef(
|
|
|
6646
6648
|
"div",
|
|
6647
6649
|
{
|
|
6648
6650
|
className: cn45(
|
|
6649
|
-
|
|
6651
|
+
// Vertical-only containment keeps the horizontal back/forward swipe working.
|
|
6652
|
+
"min-h-0 flex-1 overflow-y-auto overscroll-y-contain px-lg pb-lg",
|
|
6650
6653
|
hasHeader ? "pt-xs" : "pt-lg",
|
|
6651
6654
|
bodyClassName
|
|
6652
6655
|
),
|
|
@@ -7581,7 +7584,7 @@ var ChatWindow = React63.forwardRef(
|
|
|
7581
7584
|
role: "log",
|
|
7582
7585
|
"aria-label": "Messages",
|
|
7583
7586
|
"aria-live": "polite",
|
|
7584
|
-
className: "flex min-h-64 max-h-96 flex-col gap-lg overflow-y-auto overscroll-contain px-base py-base",
|
|
7587
|
+
className: "flex min-h-64 max-h-96 flex-col gap-lg overflow-y-auto overscroll-y-contain px-base py-base",
|
|
7585
7588
|
children: threads.length === 0 ? /* @__PURE__ */ jsxs55("div", { className: "flex flex-1 flex-col items-center justify-center gap-xs py-xl text-center", children: [
|
|
7586
7589
|
/* @__PURE__ */ jsx63(Icon, { name: "message-circle", size: 32, strokeWidth: 1.5, className: "text-muted-soft" }),
|
|
7587
7590
|
/* @__PURE__ */ jsx63("p", { className: "mt-sm text-heading-sm text-ink", children: emptyTitle }),
|
|
@@ -7929,7 +7932,7 @@ var CodeEditor = React64.forwardRef(
|
|
|
7929
7932
|
),
|
|
7930
7933
|
...rest,
|
|
7931
7934
|
children: [
|
|
7932
|
-
/* @__PURE__ */ jsxs56("aside", { className: "flex w-56 min-h-0 shrink-0 flex-col overflow-y-auto overscroll-contain border-r border-hairline bg-canvas", children: [
|
|
7935
|
+
/* @__PURE__ */ jsxs56("aside", { className: "flex w-56 min-h-0 shrink-0 flex-col overflow-y-auto overscroll-y-contain border-r border-hairline bg-canvas", children: [
|
|
7933
7936
|
/* @__PURE__ */ jsx64("div", { className: "flex items-center px-base py-md", children: /* @__PURE__ */ jsx64("span", { className: "text-overline text-muted-soft", children: "Files" }) }),
|
|
7934
7937
|
/* @__PURE__ */ jsxs56("nav", { className: "flex flex-col gap-xxs px-sm pb-base", "aria-label": "Files", children: [
|
|
7935
7938
|
/* @__PURE__ */ jsx64(
|
|
@@ -8855,7 +8858,7 @@ var Drawer = React70.forwardRef(
|
|
|
8855
8858
|
"div",
|
|
8856
8859
|
{
|
|
8857
8860
|
className: cn55(
|
|
8858
|
-
"min-h-0 flex-1 overflow-y-auto overscroll-contain px-base pb-base pt-xs",
|
|
8861
|
+
"min-h-0 flex-1 overflow-y-auto overscroll-y-contain px-base pb-base pt-xs",
|
|
8859
8862
|
bodyClassName
|
|
8860
8863
|
),
|
|
8861
8864
|
children
|
|
@@ -11058,7 +11061,7 @@ var PromptInputBar = React89.forwardRef(
|
|
|
11058
11061
|
zIndex: "var(--z-popover, 1300)"
|
|
11059
11062
|
},
|
|
11060
11063
|
className: MENU_PANEL,
|
|
11061
|
-
children: /* @__PURE__ */ jsxs81("div", { className: "flex min-h-0 flex-1 flex-col gap-xxs overflow-y-auto overscroll-contain", children: [
|
|
11064
|
+
children: /* @__PURE__ */ jsxs81("div", { className: "flex min-h-0 flex-1 flex-col gap-xxs overflow-y-auto overscroll-y-contain", children: [
|
|
11062
11065
|
hasModels ? /* @__PURE__ */ jsxs81("div", { className: "flex flex-col gap-xxs", children: [
|
|
11063
11066
|
/* @__PURE__ */ jsx89("span", { className: "px-sm pb-xxs pt-xs text-overline text-muted", children: "Model" }),
|
|
11064
11067
|
models?.map((m) => /* @__PURE__ */ jsx89(
|
|
@@ -11776,7 +11779,7 @@ var SidebarDesktop = React91.forwardRef(
|
|
|
11776
11779
|
/* @__PURE__ */ jsx91(IconButton, { icon: "panel-left", variant: "secondary", "aria-label": "Collapse sidebar", onClick: toggle })
|
|
11777
11780
|
] }),
|
|
11778
11781
|
!workspaceAtBottom && workspaceRow,
|
|
11779
|
-
/* @__PURE__ */ jsx91("nav", { "aria-label": "Main", className: cn70("min-h-0 flex-1 overflow-y-auto overscroll-contain pb-sm", collapsed ? "px-0" : "px-sm"), children: sections.map((section, i) => {
|
|
11782
|
+
/* @__PURE__ */ jsx91("nav", { "aria-label": "Main", className: cn70("min-h-0 flex-1 overflow-y-auto overscroll-y-contain pb-sm", collapsed ? "px-0" : "px-sm"), children: sections.map((section, i) => {
|
|
11780
11783
|
const sectionOpen = !section.label || isOpen(section.id);
|
|
11781
11784
|
const listId = `${baseId}-section-${section.id}`;
|
|
11782
11785
|
return /* @__PURE__ */ jsxs83("div", { className: i > 0 ? "mt-base" : void 0, children: [
|
package/dist/styles.css
CHANGED
package/package.json
CHANGED
|
@@ -87,6 +87,10 @@ export const CodePreview = React.forwardRef<HTMLDivElement, CodePreviewProps>(
|
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
+
/* Full-axis containment only when this surface really scrolls sideways;
|
|
91
|
+
otherwise y-only, so the horizontal back/forward swipe still works. */
|
|
92
|
+
const overscroll = wrap ? "overscroll-y-contain" : "overscroll-contain";
|
|
93
|
+
|
|
90
94
|
return (
|
|
91
95
|
<div
|
|
92
96
|
ref={ref}
|
|
@@ -118,7 +122,8 @@ export const CodePreview = React.forwardRef<HTMLDivElement, CodePreviewProps>(
|
|
|
118
122
|
aria-label={capped ? ariaLabel : undefined}
|
|
119
123
|
className={cn(
|
|
120
124
|
"px-md py-sm font-mono text-caption focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue",
|
|
121
|
-
capped && "max-h-64 overflow-y-auto
|
|
125
|
+
capped && "max-h-64 overflow-y-auto",
|
|
126
|
+
capped && overscroll,
|
|
122
127
|
!wrap && "overflow-x-auto",
|
|
123
128
|
)}
|
|
124
129
|
>
|
|
@@ -24,6 +24,13 @@ const pathLines: CodePreviewLine[] = [
|
|
|
24
24
|
{ text: " CodePreview.tsx" },
|
|
25
25
|
];
|
|
26
26
|
|
|
27
|
+
const designDocLines: CodePreviewLine[] = [
|
|
28
|
+
{ text: "# DESIGN.md", tone: "heading" },
|
|
29
|
+
{ text: "name: Acme design system" },
|
|
30
|
+
{ text: "brand: colors.primary" },
|
|
31
|
+
{ text: "radius: rounded.md" },
|
|
32
|
+
];
|
|
33
|
+
|
|
27
34
|
export default function CodePreviewPreview() {
|
|
28
35
|
const [loading, setLoading] = React.useState(false);
|
|
29
36
|
const [copyCount, setCopyCount] = React.useState(0);
|
|
@@ -63,7 +70,7 @@ export default function CodePreviewPreview() {
|
|
|
63
70
|
</Button>
|
|
64
71
|
</div>
|
|
65
72
|
<CodePreview
|
|
66
|
-
|
|
73
|
+
lines={designDocLines}
|
|
67
74
|
lineNumbers
|
|
68
75
|
loading={loading}
|
|
69
76
|
loadingLabel="Loading preview…"
|
|
@@ -315,7 +315,8 @@ export const DropdownMenu = React.forwardRef<HTMLSpanElement, DropdownMenuProps>
|
|
|
315
315
|
{header}
|
|
316
316
|
</div>
|
|
317
317
|
) : null}
|
|
318
|
-
|
|
318
|
+
{/* Vertical-only containment keeps the horizontal back/forward swipe working. */}
|
|
319
|
+
<div className="min-h-0 flex-1 overflow-y-auto overscroll-y-contain p-xs">
|
|
319
320
|
{items.map((entry, index) => {
|
|
320
321
|
if (isSeparator(entry)) {
|
|
321
322
|
return <Divider key={entry.id} tone="soft" className="my-xs" />;
|
|
@@ -93,12 +93,13 @@ export const ChatWindow = React.forwardRef<HTMLElement, ChatWindowProps>(
|
|
|
93
93
|
</div>
|
|
94
94
|
</header>
|
|
95
95
|
|
|
96
|
+
{/* Vertical-only containment keeps the horizontal back/forward swipe working. */}
|
|
96
97
|
<div
|
|
97
98
|
ref={listRef}
|
|
98
99
|
role="log"
|
|
99
100
|
aria-label="Messages"
|
|
100
101
|
aria-live="polite"
|
|
101
|
-
className="flex min-h-64 max-h-96 flex-col gap-lg overflow-y-auto overscroll-contain px-base py-base"
|
|
102
|
+
className="flex min-h-64 max-h-96 flex-col gap-lg overflow-y-auto overscroll-y-contain px-base py-base"
|
|
102
103
|
>
|
|
103
104
|
{threads.length === 0 ? (
|
|
104
105
|
<div className="flex flex-1 flex-col items-center justify-center gap-xs py-xl text-center">
|
|
@@ -341,7 +341,9 @@ export const CodeEditor = React.forwardRef<HTMLDivElement, CodeEditorProps>(
|
|
|
341
341
|
)}
|
|
342
342
|
{...rest}
|
|
343
343
|
>
|
|
344
|
-
|
|
344
|
+
{/* The file tree only scrolls vertically, so containment is y-only to keep
|
|
345
|
+
the browser's horizontal swipe-back gesture reachable. */}
|
|
346
|
+
<aside className="flex w-56 min-h-0 shrink-0 flex-col overflow-y-auto overscroll-y-contain border-r border-hairline bg-canvas">
|
|
345
347
|
<div className="flex items-center px-base py-md">
|
|
346
348
|
<span className="text-overline text-muted-soft">Files</span>
|
|
347
349
|
</div>
|
|
@@ -436,6 +438,7 @@ export const CodeEditor = React.forwardRef<HTMLDivElement, CodeEditorProps>(
|
|
|
436
438
|
</Button>
|
|
437
439
|
</div>
|
|
438
440
|
|
|
441
|
+
{/* Code scrolls both axes, so this surface keeps full-axis containment. */}
|
|
439
442
|
<div
|
|
440
443
|
id={`${baseId}-panel`}
|
|
441
444
|
role="tabpanel"
|
|
@@ -244,9 +244,11 @@ export const Drawer = React.forwardRef<HTMLDivElement, DrawerProps>(
|
|
|
244
244
|
/>
|
|
245
245
|
</div>
|
|
246
246
|
)}
|
|
247
|
+
{/* Vertical-only containment: a horizontal two-finger swipe over the
|
|
248
|
+
body still reaches the browser's back/forward gesture. */}
|
|
247
249
|
<div
|
|
248
250
|
className={cn(
|
|
249
|
-
"min-h-0 flex-1 overflow-y-auto overscroll-contain px-base pb-base pt-xs",
|
|
251
|
+
"min-h-0 flex-1 overflow-y-auto overscroll-y-contain px-base pb-base pt-xs",
|
|
250
252
|
bodyClassName,
|
|
251
253
|
)}
|
|
252
254
|
>
|
|
@@ -190,7 +190,8 @@ export const Modal = React.forwardRef<HTMLDivElement, ModalProps>(
|
|
|
190
190
|
{children != null && children !== false && (
|
|
191
191
|
<div
|
|
192
192
|
className={cn(
|
|
193
|
-
|
|
193
|
+
// Vertical-only containment keeps the horizontal back/forward swipe working.
|
|
194
|
+
"min-h-0 flex-1 overflow-y-auto overscroll-y-contain px-lg pb-lg",
|
|
194
195
|
hasHeader ? "pt-xs" : "pt-lg",
|
|
195
196
|
bodyClassName,
|
|
196
197
|
)}
|
|
@@ -570,7 +570,9 @@ export const PromptInputBar = React.forwardRef<
|
|
|
570
570
|
}}
|
|
571
571
|
className={MENU_PANEL}
|
|
572
572
|
>
|
|
573
|
-
|
|
573
|
+
{/* Vertical-only containment: a horizontal two-finger swipe still
|
|
574
|
+
reaches the browser's back/forward gesture. */}
|
|
575
|
+
<div className="flex min-h-0 flex-1 flex-col gap-xxs overflow-y-auto overscroll-y-contain">
|
|
574
576
|
{hasModels ? (
|
|
575
577
|
<div className="flex flex-col gap-xxs">
|
|
576
578
|
<span className="px-sm pb-xxs pt-xs text-overline text-muted">
|
|
@@ -365,7 +365,9 @@ export const SidebarDesktop = React.forwardRef<HTMLDivElement, SidebarDesktopPro
|
|
|
365
365
|
|
|
366
366
|
{!workspaceAtBottom && workspaceRow}
|
|
367
367
|
|
|
368
|
-
|
|
368
|
+
{/* Vertical-only containment: a horizontal two-finger swipe over the nav
|
|
369
|
+
still reaches the browser's back/forward gesture. */}
|
|
370
|
+
<nav aria-label="Main" className={cn("min-h-0 flex-1 overflow-y-auto overscroll-y-contain pb-sm", collapsed ? "px-0" : "px-sm")}>
|
|
369
371
|
{sections.map((section, i) => {
|
|
370
372
|
const sectionOpen = !section.label || isOpen(section.id);
|
|
371
373
|
const listId = `${baseId}-section-${section.id}`;
|