Skip to content

Commit a7f1bfa

Browse files
authored
fix scroll to current block (#2130)
* Fix Anchor and add unit tests for it * Add some margin-bottom for mobiles * Remove extra deps
1 parent 524f618 commit a7f1bfa

File tree

6 files changed

+537
-63
lines changed

6 files changed

+537
-63
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@
9393
"@next/eslint-plugin-next": "^15.3.3",
9494
"@playwright/test": "^1.54.2",
9595
"@svgr/webpack": "^8.1.0",
96+
"@testing-library/react": "^16.3.0",
9697
"@types/codemirror": "5.60.16",
9798
"@types/hast": "3.0.4",
99+
"@types/jsdom": "^21.1.7",
98100
"@types/node": "^22.10.5",
99101
"@types/react": "^18.3.23",
100102
"@types/rss": "0.0.32",
@@ -107,6 +109,7 @@
107109
"eslint-plugin-react": "^7.37.5",
108110
"eslint-plugin-react-hooks": "^5.2.0",
109111
"eslint-plugin-tailwindcss": "3.18.2",
112+
"jsdom": "^26.1.0",
110113
"prettier": "3.5.3",
111114
"prettier-plugin-pkg": "^0.20.0",
112115
"prettier-plugin-tailwindcss": "^0.6.12",

0 commit comments

Comments
 (0)