fix: change issue
parent
58c817e5b2
commit
ee62308a1c
|
@ -21,12 +21,12 @@ const data = [
|
||||||
];
|
];
|
||||||
|
|
||||||
export default function ChannelSwiper() {
|
export default function ChannelSwiper() {
|
||||||
const isMobile = /Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent);
|
// const isMobile = /Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent);
|
||||||
|
// isMobile ? 15 :
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="overflow-hidden flex items-center">
|
<div className="overflow-hidden flex items-center">
|
||||||
<Marquee speed={isMobile ? 15 : 50}>
|
<Marquee speed={50}>
|
||||||
{data.map((item, index) => {
|
{data.map((item, index) => {
|
||||||
return (
|
return (
|
||||||
<div key={index} className="mx-8 max-w-[100px] w-auto h-[80px] flex items-center ">
|
<div key={index} className="mx-8 max-w-[100px] w-auto h-[80px] flex items-center ">
|
||||||
|
|
Loading…
Reference in New Issue