Skip to content

Commit

Permalink
Expected indentation of 2 spaces but found 1 indent
Browse files Browse the repository at this point in the history
  • Loading branch information
penxian committed Dec 13, 2024
1 parent e14852d commit cef57c6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions source/js/third-party/search/algolia-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ document.addEventListener('DOMContentLoaded', () => {
let isSearching = false;
let pendingQuery = null;

/**
* Sets the CSS variable '--dialog-scrollgutter' to the specified gap value.
* If no gap is provided, it calculates the gap as the difference between
* the window's inner width and the document body's client width.
*
* @param {string} [gap] - The gap value to be set. If not provided, the
* default gap is calculated automatically.
*/
/**
* Sets the CSS variable '--dialog-scrollgutter' to the specified gap value.
* If no gap is provided, it calculates the gap as the difference between
* the window's inner width and the document body's client width.
*
* @param {string} [gap] - The gap value to be set. If not provided, the
* default gap is calculated automatically.
*/
const setGutter = gap => {
const gutter = gap || `${window.innerWidth - document.body.clientWidth}px`;
document.body.style.setProperty('--dialog-scrollgutter', gutter);
Expand Down

0 comments on commit cef57c6

Please sign in to comment.