diff --git a/components.js b/components.js index c4f88f3..ad5ea27 100644 --- a/components.js +++ b/components.js @@ -1996,6 +1996,8 @@ smTabHeader.innerHTML = ` --accent-color: #4d2588; --text-color: 17, 17, 17; --background-color: 255, 255, 255; + --gap: 1rem; + --justify-content: flex-start; --tab-indicator-border-radius: 0.3rem; } .tabs{ @@ -2008,10 +2010,8 @@ smTabHeader.innerHTML = ` display: -ms-grid; display: grid; grid-auto-flow: column; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - gap: 1rem; + justify-content: var(--justify-content); + gap: var(--gap); position: relative; overflow: auto hidden; max-width: 100%; @@ -2055,7 +2055,7 @@ smTabHeader.innerHTML = ` color: var(--accent-color); opacity: 1; } - @media (hover: none){ + @media (any-hover: none){ .tab-header::-webkit-scrollbar-track { -webkit-box-shadow: none !important; background-color: transparent !important; @@ -2065,6 +2065,11 @@ smTabHeader.innerHTML = ` background-color: transparent; } } + @media (any-hover: hover){ + .tab-header{ + overflow: hidden; + } + }