mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: remove wrong comment
This commit is contained in:
parent
70b328b8d7
commit
297dd53dd2
@ -20,8 +20,7 @@ export default function TabSwitch({
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const currentTabElement = tabRefs.current[tabs.indexOf(currentTab)]
|
const currentTabElement = tabRefs.current[tabs.indexOf(currentTab)]
|
||||||
if (currentTabElement) {
|
if (currentTabElement) {
|
||||||
// 考虑父元素的padding和gap
|
const parentPadding = 1
|
||||||
const parentPadding = 1 // p-[3px]
|
|
||||||
setIndicator({
|
setIndicator({
|
||||||
x:
|
x:
|
||||||
tabs.indexOf(currentTab) !== 0
|
tabs.indexOf(currentTab) !== 0
|
||||||
|
Loading…
Reference in New Issue
Block a user