fix: scroll to note
This commit is contained in:
5
src/constants/bookmark-width.ts
Normal file
5
src/constants/bookmark-width.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const BOOKMARK_WIDTH_REM = 2
|
||||
|
||||
export const getBookmarkWidthPx = () =>
|
||||
BOOKMARK_WIDTH_REM *
|
||||
parseFloat(getComputedStyle(document.documentElement).fontSize)
|
||||
Reference in New Issue
Block a user