fix: no-scrollbar for firefox (#10964)
parent
a030861423
commit
6a22d75caa
|
@ -207,16 +207,14 @@ html.todesktop nav a svg{
|
||||||
https://github.com/tailwindlabs/tailwindcss/pull/5732
|
https://github.com/tailwindlabs/tailwindcss/pull/5732
|
||||||
*/
|
*/
|
||||||
@layer utilities {
|
@layer utilities {
|
||||||
@layer responsive {
|
/* Chrome, Safari and Opera */
|
||||||
/* Chrome, Safari and Opera */
|
.no-scrollbar::-webkit-scrollbar {
|
||||||
.no-scrollbar::-webkit-scrollbar {
|
display: none;
|
||||||
display: none;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.no-scrollbar {
|
.no-scrollbar {
|
||||||
-ms-overflow-style: none; /* IE and Edge */
|
-ms-overflow-style: none; /* IE and Edge */
|
||||||
scrollbar-width: none; /* Firefox */
|
scrollbar-width: none; /* Firefox */
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ const HorizontalTabs = function ({ tabs, linkShallow, linkScroll, actions, ...pr
|
||||||
return (
|
return (
|
||||||
<div className="mb-4 h-9 max-w-full lg:mb-5">
|
<div className="mb-4 h-9 max-w-full lg:mb-5">
|
||||||
<nav
|
<nav
|
||||||
className="no-scrollbar flex max-h-9 space-x-1 overflow-scroll rounded-md"
|
className="no-scrollbar flex max-h-9 space-x-1 overflow-x-scroll rounded-md"
|
||||||
aria-label="Tabs"
|
aria-label="Tabs"
|
||||||
{...props}>
|
{...props}>
|
||||||
{tabs.map((tab, idx) => (
|
{tabs.map((tab, idx) => (
|
||||||
|
|
Loading…
Reference in New Issue