@easyops-cn/docusaurus-search-local 0.44.1 → 0.44.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
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.44.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.44.1...v0.44.2) (2024-06-20)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * manually make the search bar be LTR even if in RTL ([a5c7184](https://github.com/easyops-cn/docusaurus-search-local/commit/a5c7184c77929410732df022ebb3257bdb491074))
11
+
5
12
  ## [0.44.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.44.0...v0.44.1) (2024-06-19)
6
13
 
7
14
 
@@ -318,7 +318,9 @@ export default function SearchBar({ handleSearchBarToggle, }) {
318
318
  return (<div className={clsx("navbar__search", styles.searchBarContainer, {
319
319
  [styles.searchIndexLoading]: loading && inputChanged,
320
320
  [styles.focused]: focused,
321
- })} hidden={hidden}>
321
+ })} hidden={hidden}
322
+ // Manually make the search bar be LTR even if in RTL
323
+ dir="ltr">
322
324
  <input placeholder={translate({
323
325
  id: "theme.SearchBar.label",
324
326
  message: "Search",
@@ -250,6 +250,26 @@ html[data-theme="dark"] .noResultsIcon {
250
250
  }
251
251
  }
252
252
 
253
+ /* Manually make the search bar be LTR even if in RTL */
254
+ html[dir="rtl"] .searchHintContainer {
255
+ right: auto;
256
+ left: 10px;
257
+ }
258
+
259
+ html[dir="rtl"] .searchBarContainer .searchClearButton {
260
+ right: auto;
261
+ left: 0.8rem;
262
+ }
263
+
264
+ html[dir="rtl"] .searchBarContainer .searchBarLoadingRing {
265
+ left: auto;
266
+ right: 10px;
267
+ }
268
+
269
+ html[dir="rtl"] :global(.navbar__search-input) {
270
+ padding: 0 2.25em 0 0.5em;
271
+ }
272
+
253
273
  /* For autocomplete.js only. */
254
274
  .input {
255
275
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyops-cn/docusaurus-search-local",
3
- "version": "0.44.1",
3
+ "version": "0.44.2",
4
4
  "description": "An offline/local search plugin for Docusaurus v3",
5
5
  "repository": {
6
6
  "type": "git",