@rspress-theme-anatole/theme-default 0.7.49 → 0.7.50
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/dist/bundle.css +5 -2
- package/dist/bundle.js +14 -4
- package/package.json +3 -3
package/dist/bundle.css
CHANGED
|
@@ -2364,6 +2364,9 @@ p {
|
|
|
2364
2364
|
|
|
2365
2365
|
.rspress-scrollbar::-webkit-scrollbar-thumb {
|
|
2366
2366
|
border-radius: var(--rp-radius-small);
|
|
2367
|
+
background-color: var(--rp-c-text-4);
|
|
2368
|
+
background-clip: content-box;
|
|
2369
|
+
border: 3px solid #0000;
|
|
2367
2370
|
}
|
|
2368
2371
|
|
|
2369
2372
|
.rspress-scrollbar:hover::-webkit-scrollbar-thumb {
|
|
@@ -3298,7 +3301,7 @@ p {
|
|
|
3298
3301
|
.searchHits_dc1b2 {
|
|
3299
3302
|
max-height: calc(100vh - 230px);
|
|
3300
3303
|
padding-right: 2px;
|
|
3301
|
-
overflow:
|
|
3304
|
+
overflow-y: auto;
|
|
3302
3305
|
}
|
|
3303
3306
|
|
|
3304
3307
|
.searchHits_dc1b2 .groupTitle_fe27c {
|
|
@@ -4276,4 +4279,4 @@ p {
|
|
|
4276
4279
|
.popular-topics-grid {
|
|
4277
4280
|
grid-template-columns: 1fr;
|
|
4278
4281
|
}
|
|
4279
|
-
}
|
|
4282
|
+
}
|
package/dist/bundle.js
CHANGED
|
@@ -6563,6 +6563,13 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
|
|
|
6563
6563
|
children: getHighlightedFragments(statement, highlightInfoList)
|
|
6564
6564
|
});
|
|
6565
6565
|
};
|
|
6566
|
+
const renderLink = () => {
|
|
6567
|
+
const displayLink = removeDomain(suggestion.link);
|
|
6568
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
6569
|
+
className: "text-xs text-gray-400 mt-1 truncate opacity-70",
|
|
6570
|
+
children: displayLink
|
|
6571
|
+
});
|
|
6572
|
+
};
|
|
6566
6573
|
let hitContent = null;
|
|
6567
6574
|
switch (suggestion.type) {
|
|
6568
6575
|
case 'title':
|
|
@@ -6606,9 +6613,12 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
|
|
|
6606
6613
|
}),
|
|
6607
6614
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
6608
6615
|
className: Search_index_module.contentWrapper,
|
|
6609
|
-
children:
|
|
6610
|
-
|
|
6611
|
-
|
|
6616
|
+
children: [
|
|
6617
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
6618
|
+
children: hitContent
|
|
6619
|
+
}),
|
|
6620
|
+
renderLink()
|
|
6621
|
+
]
|
|
6612
6622
|
}),
|
|
6613
6623
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
6614
6624
|
className: Search_index_module.actionIcon,
|
|
@@ -7129,7 +7139,7 @@ function SearchPanel({ focused, setFocused }) {
|
|
|
7129
7139
|
const groupSuggestions = normalizedSuggestions[group] || [];
|
|
7130
7140
|
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("li", {
|
|
7131
7141
|
children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("ul", {
|
|
7132
|
-
className: "pb-2",
|
|
7142
|
+
// className: "pb-2",
|
|
7133
7143
|
children: groupSuggestions.map((suggestion) => {
|
|
7134
7144
|
accumulateIndex++;
|
|
7135
7145
|
const suggestionIndex = accumulateIndex;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress-theme-anatole/theme-default",
|
|
3
3
|
"author": "Anatole Tong",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.50",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.css",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"types": "./dist/bundle.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@mdx-js/react": "2.3.0",
|
|
24
|
-
"@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.
|
|
25
|
-
"@rspress-theme-anatole/shared": "0.7.
|
|
24
|
+
"@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.50",
|
|
25
|
+
"@rspress-theme-anatole/shared": "0.7.50",
|
|
26
26
|
"@rspress/runtime": "1.43.8",
|
|
27
27
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
28
28
|
"copy-to-clipboard": "^3.3.3",
|