@easyops-cn/docusaurus-search-local 0.21.0 → 0.21.4
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.21.4](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.21.3...v0.21.4) (2021-12-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* set max-width for dropdown on small screen ([cec8c39](https://www.github.com/easyops-cn/docusaurus-search-local/commit/cec8c3924beacd900d880fd66edaf52dbdbdd952)), closes [#135](https://www.github.com/easyops-cn/docusaurus-search-local/issues/135)
|
|
11
|
+
|
|
12
|
+
### [0.21.3](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.21.2...v0.21.3) (2021-12-14)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* use keydown instead of keypress ([d871f0b](https://www.github.com/easyops-cn/docusaurus-search-local/commit/d871f0bbb1e1c6fe191341f7166b89b6aeb11bf2)), closes [#132](https://www.github.com/easyops-cn/docusaurus-search-local/issues/132)
|
|
18
|
+
|
|
19
|
+
### [0.21.2](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.21.1...v0.21.2) (2021-12-13)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* refine styles with dark navbar ([e3c9eef](https://www.github.com/easyops-cn/docusaurus-search-local/commit/e3c9eef41ffd9d51bb57b05fd199f7dc32541e79)), closes [#128](https://www.github.com/easyops-cn/docusaurus-search-local/issues/128)
|
|
25
|
+
|
|
26
|
+
### [0.21.1](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.21.0...v0.21.1) (2021-12-07)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* fix input box style of search page in dark mode ([f233bce](https://www.github.com/easyops-cn/docusaurus-search-local/commit/f233bcedb4d79cba9b8d21f700ca79f2297f0ec9)), closes [#125](https://www.github.com/easyops-cn/docusaurus-search-local/issues/125)
|
|
32
|
+
|
|
5
33
|
## [0.21.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.20.0...v0.21.0) (2021-12-04)
|
|
6
34
|
|
|
7
35
|
|
|
@@ -164,12 +164,9 @@ export default function SearchBar({ handleSearchBarToggle, }) {
|
|
|
164
164
|
searchBarRef.current?.focus();
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
|
|
168
|
-
// Then we use the metaKey boolean prop to see if the "command" key was pressed.
|
|
169
|
-
const eventType = isMac ? "keydown" : "keypress";
|
|
170
|
-
document.addEventListener(eventType, handleShortcut);
|
|
167
|
+
document.addEventListener("keydown", handleShortcut);
|
|
171
168
|
return () => {
|
|
172
|
-
document.removeEventListener(
|
|
169
|
+
document.removeEventListener("keydown", handleShortcut);
|
|
173
170
|
};
|
|
174
171
|
}, [isMac]);
|
|
175
172
|
return (<div className={clsx("navbar__search", styles.searchBarContainer, {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
.searchBar .dropdownMenu {
|
|
25
25
|
width: var(--search-local-modal-width-sm, 340px);
|
|
26
|
+
max-width: calc(100vw - var(--ifm-navbar-padding-horizontal) * 2);
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
|
|
@@ -219,6 +220,9 @@ html[data-theme="dark"] .noResultsIcon {
|
|
|
219
220
|
|
|
220
221
|
.searchHint {
|
|
221
222
|
color: var(--ifm-navbar-search-input-placeholder-color);
|
|
223
|
+
background-color: var(--ifm-navbar-background-color);
|
|
224
|
+
border: 1px solid var(--ifm-color-emphasis-500);
|
|
225
|
+
box-shadow: inset 0 -1px 0 var(--ifm-color-emphasis-500);
|
|
222
226
|
}
|
|
223
227
|
|
|
224
228
|
@media (max-width: 576px) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easyops-cn/docusaurus-search-local",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.4",
|
|
4
4
|
"description": "An offline/local search plugin for Docusaurus v2.",
|
|
5
5
|
"repository": "https://github.com/easyops-cn/docusaurus-search-local",
|
|
6
6
|
"homepage": "https://github.com/easyops-cn/docusaurus-search-local",
|