boltdocs 1.10.1 → 1.10.2

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.
@@ -1,7 +1,7 @@
1
- import React, { useState } from "react";
1
+ import React from "react";
2
2
  import { useLocation } from "react-router-dom";
3
3
  import { Link } from "../Link";
4
- import { ChevronLeft, ChevronRight, Menu } from "lucide-react";
4
+ import { ChevronLeft, ChevronRight } from "lucide-react";
5
5
  import { usePreload } from "../../../app/preload";
6
6
  import { BoltdocsConfig } from "../../../../node/config";
7
7
  import { ComponentRoute } from "../../../types";
@@ -10,14 +10,12 @@ export { Sidebar } from "../Sidebar";
10
10
  export { OnThisPage } from "../OnThisPage";
11
11
  export { Head } from "../Head";
12
12
  export { Breadcrumbs } from "../Breadcrumbs";
13
- export { BackgroundGradient } from "../BackgroundGradient";
14
13
 
15
14
  import { Navbar } from "../Navbar";
16
15
  import { Sidebar } from "../Sidebar";
17
16
  import { OnThisPage } from "../OnThisPage";
18
17
  import { Head } from "../Head";
19
18
  import { Breadcrumbs } from "../Breadcrumbs";
20
- import { BackgroundGradient } from "../BackgroundGradient";
21
19
  import { ProgressBar } from "../ProgressBar";
22
20
  import { ErrorBoundary } from "../ErrorBoundary";
23
21
  import { CopyMarkdown } from "../CopyMarkdown";
@@ -112,7 +110,6 @@ export function ThemeLayout({
112
110
  return (
113
111
  <div className={`boltdocs-layout ${className}`} style={style}>
114
112
  <ProgressBar />
115
- {background !== undefined ? background : <BackgroundGradient />}
116
113
  {head !== undefined ? (
117
114
  head
118
115
  ) : (
@@ -148,14 +145,12 @@ export function ThemeLayout({
148
145
  )}
149
146
  <div className="boltdocs-page">
150
147
  <div className="boltdocs-page-header">
151
- <CopyMarkdown
152
- content={routes[currentIndex]?._rawContent}
148
+ <CopyMarkdown
149
+ content={routes[currentIndex]?._rawContent}
153
150
  config={config.themeConfig?.copyMarkdown}
154
151
  />
155
152
  </div>
156
- <ErrorBoundary>
157
- {children}
158
- </ErrorBoundary>
153
+ <ErrorBoundary>{children}</ErrorBoundary>
159
154
  </div>
160
155
 
161
156
  {/* Prev / Next Navigation */}
@@ -92,12 +92,13 @@ a {
92
92
 
93
93
  .boltdocs-page-header {
94
94
  position: absolute;
95
- top: 0;
95
+ top: -0.5rem; /* Move up slightly to overlap less with title body */
96
96
  right: 0;
97
97
  display: flex;
98
98
  justify-content: flex-end;
99
99
  padding: 1rem 0;
100
100
  pointer-events: none;
101
+ z-index: 101; /* Ensure it stays above everything */
101
102
  }
102
103
 
103
104
  .boltdocs-page-header > * {
@@ -20,6 +20,17 @@
20
20
  font-size: 2.25rem;
21
21
  }
22
22
 
23
+ .boltdocs-page h1 {
24
+ padding-right: 0;
25
+ }
26
+
27
+ .boltdocs-page-header {
28
+ position: static;
29
+ justify-content: flex-start;
30
+ margin-bottom: 1rem;
31
+ padding: 0;
32
+ }
33
+
23
34
  .ld-cards--2,
24
35
  .ld-cards--3,
25
36
  .ld-cards--4 {
@@ -1,10 +0,0 @@
1
- import React from "react";
2
-
3
- export function BackgroundGradient() {
4
- return (
5
- <div className="boltdocs-background-glow">
6
- <div className="glow-shape glow-1" />
7
- <div className="glow-shape glow-2" />
8
- </div>
9
- );
10
- }
@@ -1 +0,0 @@
1
- export { BackgroundGradient } from "./BackgroundGradient";