mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-01 18:28:48 -04:00
Fixed overflow for alternate style when more than 10 tabs are present
This commit is contained in:
@@ -80,7 +80,7 @@ export function mountContentTabs(
|
||||
// TODO: Hack, scrollIntoView is too buggy
|
||||
const container = active.parentElement!
|
||||
if (
|
||||
active.offsetLeft + active.offsetWidth > container.offsetWidth ||
|
||||
active.offsetLeft + active.offsetWidth > container.scrollLeft + container.offsetWidth ||
|
||||
active.offsetLeft < container.scrollLeft
|
||||
)
|
||||
container.scrollTo({
|
||||
|
||||
Reference in New Issue
Block a user