fix: change issue

main
guofei 2024-11-20 21:48:32 +08:00
parent 58c817e5b2
commit ee62308a1c
1 changed files with 3 additions and 3 deletions

View File

@ -21,12 +21,12 @@ const data = [
];
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 (
<>
<div className="overflow-hidden flex items-center">
<Marquee speed={isMobile ? 15 : 50}>
<Marquee speed={50}>
{data.map((item, index) => {
return (
<div key={index} className="mx-8 max-w-[100px] w-auto h-[80px] flex items-center ">