Compare commits

..

No commits in common. "f38d3a192b15b68172dc1b0adaf82a81daef4d76" and "36c7316a7fb9a8f69ecab18e61cb0c9f258ce6a1" have entirely different histories.

3 changed files with 6 additions and 2 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -53,8 +53,12 @@ export default function Switch({
useEffect(() => { useEffect(() => {
const currentTagElement = tagRefs.current[allTag.indexOf(nowTag)]?.current const currentTagElement = tagRefs.current[allTag.indexOf(nowTag)]?.current
if (currentTagElement) { if (currentTagElement) {
const parentPadding = 1
setIndicator({ setIndicator({
x: currentTagElement.offsetLeft, x:
allTag.indexOf(nowTag) !== 0
? currentTagElement.offsetLeft - parentPadding
: currentTagElement.offsetLeft,
w: currentTagElement.offsetWidth, w: currentTagElement.offsetWidth,
}) })
} }

View File

@ -66,7 +66,7 @@
"@next/bundle-analyzer": "^15.1.3", "@next/bundle-analyzer": "^15.1.3",
"@tailwindcss/postcss": "^4.0.0-beta.8", "@tailwindcss/postcss": "^4.0.0-beta.8",
"@types/node": "^22.10.5", "@types/node": "^22.10.5",
"@types/react": "^19.0.3", "@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2", "@types/react-dom": "^19.0.2",
"eslint-config-next": "^15.1.3", "eslint-config-next": "^15.1.3",
"eslint-plugin-turbo": "^2.3.3", "eslint-plugin-turbo": "^2.3.3",