@myst-theme/site 0.1.25 → 0.1.26
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myst-theme/site",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"main": "./src/index.ts",
|
|
5
5
|
"types": "./src/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@headlessui/react": "^1.7.8",
|
|
18
18
|
"@heroicons/react": "^2.0.14",
|
|
19
|
-
"@myst-theme/diagrams": "^0.1.
|
|
20
|
-
"@myst-theme/frontmatter": "^0.1.
|
|
21
|
-
"@myst-theme/jupyter": "^0.1.
|
|
22
|
-
"@myst-theme/providers": "^0.1.
|
|
19
|
+
"@myst-theme/diagrams": "^0.1.26",
|
|
20
|
+
"@myst-theme/frontmatter": "^0.1.26",
|
|
21
|
+
"@myst-theme/jupyter": "^0.1.26",
|
|
22
|
+
"@myst-theme/providers": "^0.1.26",
|
|
23
23
|
"classnames": "^2.3.2",
|
|
24
24
|
"lodash.throttle": "^4.1.1",
|
|
25
25
|
"myst-common": "^0.0.14",
|
|
26
26
|
"myst-config": "^0.0.9",
|
|
27
|
-
"myst-demo": "^0.1.
|
|
28
|
-
"myst-to-react": "^0.1.
|
|
27
|
+
"myst-demo": "^0.1.26",
|
|
28
|
+
"myst-to-react": "^0.1.26",
|
|
29
29
|
"nbtx": "^0.2.3",
|
|
30
30
|
"node-cache": "^5.1.2",
|
|
31
31
|
"node-fetch": "^2.6.7",
|
|
@@ -124,16 +124,16 @@ export const TableOfContents = ({
|
|
|
124
124
|
if (!headings) return null;
|
|
125
125
|
return (
|
|
126
126
|
<div
|
|
127
|
-
className="fixed article-grid article-grid-gap w-screen z-30 pointer-events-none"
|
|
127
|
+
className="fixed xl:article-grid article-grid-gap xl:w-screen z-30 xl:pointer-events-none overflow-auto max-xl:min-w-[300px]"
|
|
128
128
|
style={{
|
|
129
129
|
top: top ?? 0,
|
|
130
|
-
height: `calc(100vh - ${top ?? 0}px)`,
|
|
130
|
+
height: `min(calc(100vh - ${top ?? 0}px), ${height}px)`,
|
|
131
131
|
}}
|
|
132
132
|
>
|
|
133
133
|
<div
|
|
134
134
|
className={classNames(
|
|
135
135
|
'pointer-events-auto',
|
|
136
|
-
'col-margin-left flex-col',
|
|
136
|
+
'xl:col-margin-left flex-col',
|
|
137
137
|
'overflow-hidden',
|
|
138
138
|
// 'border-r border-stone-200 dark:border-stone-700',
|
|
139
139
|
{
|
|
@@ -145,7 +145,7 @@ export const TableOfContents = ({
|
|
|
145
145
|
>
|
|
146
146
|
<nav
|
|
147
147
|
aria-label="Table of Contents"
|
|
148
|
-
className="flex-grow overflow-y-auto transition-opacity mt-6 mr-3"
|
|
148
|
+
className="flex-grow overflow-y-auto transition-opacity mt-6 pb-3 ml-3 xl:ml-0 mr-3"
|
|
149
149
|
style={{ opacity: height && height > 150 ? undefined : 0 }}
|
|
150
150
|
>
|
|
151
151
|
<Headings folder={resolvedProjectSlug} headings={headings} sections={config?.projects} />
|