mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
Compare commits
No commits in common. "f38d3a192b15b68172dc1b0adaf82a81daef4d76" and "36c7316a7fb9a8f69ecab18e61cb0c9f258ce6a1" have entirely different histories.
f38d3a192b
...
36c7316a7f
@ -53,8 +53,12 @@ export default function Switch({
|
||||
useEffect(() => {
|
||||
const currentTagElement = tagRefs.current[allTag.indexOf(nowTag)]?.current
|
||||
if (currentTagElement) {
|
||||
const parentPadding = 1
|
||||
setIndicator({
|
||||
x: currentTagElement.offsetLeft,
|
||||
x:
|
||||
allTag.indexOf(nowTag) !== 0
|
||||
? currentTagElement.offsetLeft - parentPadding
|
||||
: currentTagElement.offsetLeft,
|
||||
w: currentTagElement.offsetWidth,
|
||||
})
|
||||
}
|
||||
|
@ -66,7 +66,7 @@
|
||||
"@next/bundle-analyzer": "^15.1.3",
|
||||
"@tailwindcss/postcss": "^4.0.0-beta.8",
|
||||
"@types/node": "^22.10.5",
|
||||
"@types/react": "^19.0.3",
|
||||
"@types/react": "^19.0.2",
|
||||
"@types/react-dom": "^19.0.2",
|
||||
"eslint-config-next": "^15.1.3",
|
||||
"eslint-plugin-turbo": "^2.3.3",
|
||||
|
Loading…
Reference in New Issue
Block a user