Adjust card width for mobile

Adjust card width to fit mobile screens.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 05:53:36 +00:00
parent 71d21b9e6e
commit 13bff57266
3 changed files with 20 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
import React from 'react';
import { ChevronLeft, ChevronRight } from 'lucide-react';
import { useIsMobile } from '@/hooks/use-mobile';
interface PeriodSelectorProps {
selectedPeriod: string;
@@ -13,8 +14,10 @@ const PeriodSelector: React.FC<PeriodSelectorProps> = ({
onPrevPeriod,
onNextPeriod
}) => {
const isMobile = useIsMobile();
return (
<div className="flex items-center justify-between mb-6">
<div className={`flex items-center justify-between mb-6 ${isMobile ? 'w-full' : ''}`}>
<button
className="neuro-flat p-2 rounded-full"
onClick={onPrevPeriod}