[F] Fix init bcLeft
This commit is contained in:
+3
-2
@@ -65,8 +65,9 @@ export default function App() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set initial breadcrumb wheel to show the end path
|
// Set initial breadcrumb wheel to show the end path
|
||||||
const initWheel = (w: HTMLDivElement) => setTimeout(() =>
|
const initWheel = (w: HTMLDivElement) => setTimeout(() => {
|
||||||
setBcLeft(bcMax = Math.round(w.clientWidth - w.parentElement.clientWidth)), 100)
|
setBcLeft(Math.max(bcMax = Math.round(w.clientWidth - w.parentElement.clientWidth), 0))
|
||||||
|
}, 100)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
// Full screen container
|
// Full screen container
|
||||||
|
|||||||
Reference in New Issue
Block a user