Skip to content

Commit f92ceb8

Browse files
author
Ritika Mishra
committed
updated width of candle for all screen size
1 parent bfb9607 commit f92ceb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/CandleLit.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ const BrightCandleView: React.FC<BrightCandleViewProps> = ({ fftData = [], betaP
4545
return (
4646
<div className="w-full h-full flex items-end justify-center min-h-0 min-w-0">
4747
<div className={`relative ${isFullPage
48-
? 'w-1/4 h-3/4 sm:w-1/4 sm:h-3/4 md:w-1/4 md:h-3/4 lg:w-1/4 lg:h-3/4 xl:w-1/4 xl:h-3/4 2xl:w-1/4 2xl:h-3/4'
49-
: 'w-1/4 h-4/5 sm:w-1/5 sm:h-4/5 md:w-1/6 md:h-5/6 lg:w-1/6 lg:h-5/6 xl:w-1/6 xl:h-5/6'
48+
? 'w-1/4 h-3/4 sm:w-1/4 sm:h-3/4 md:w-1/4 md:h-3/4 lg:w-1/4 lg:h-3/4 xl:w-1/4 xl:h-3/4 2xl:w-2/4 2xl:h-3/4'
49+
: 'w-1/4 h-4/5 sm:w-1/5 sm:h-4/5 md:w-1/6 md:h-5/6 lg:w-1/6 lg:h-5/6 xl:w-1/6 xl:h-5/6'
5050
}`}
5151
>
5252
{/* Container wrapper with relative positioning */}
@@ -98,8 +98,8 @@ const BrightCandleView: React.FC<BrightCandleViewProps> = ({ fftData = [], betaP
9898
<div style={{ height: '80%' }} className="w-full bg-gradient-to-b from-gray-100 to-gray-200 dark:from-stone-600 dark:to-stone-700 rounded-t-md backdrop-blur-md shadow-xl relative">
9999
<div className="absolute inset-0 overflow-hidden rounded-t-md bg-gradient-to-b from-cyan-300 via-blue-400 to-gray-900">
100100
<div className={`absolute inset-0 ${isFullPage
101-
? 'flex flex-row justify-center items-center'
102-
: 'flex items-center justify-center'
101+
? 'flex flex-row justify-center items-center'
102+
: 'flex items-center justify-center'
103103
}`}
104104
>
105105
<div className="text-xs sm:text-sm md:text-lg lg:text-xl xl:text-2xl font-semibold text-gray-800 px-1 sm:px-2 md:px-3 py-1">

0 commit comments

Comments
 (0)