We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4fe36e commit b620b59Copy full SHA for b620b59
src/components/Search.tsx
@@ -108,7 +108,7 @@ export function Search({
108
}: SearchProps) {
109
const [isShowing, setIsShowing] = useState(false);
110
111
- useLayoutEffect(() => {
+ useLayoutEffect(() => {
112
const scrollBarWidth = window.innerWidth - document.body.clientWidth;
113
if (isShowing) {
114
document.body.style.marginRight = `${scrollBarWidth}px`;
0 commit comments