diff --git a/frontend/src/pages/Guide.jsx b/frontend/src/pages/Guide.jsx index dbeaf431..4a4ee71e 100644 --- a/frontend/src/pages/Guide.jsx +++ b/frontend/src/pages/Guide.jsx @@ -83,34 +83,34 @@ const GuideRow = React.memo(({ index, style, data }) => { > handleLogoClick(channel, event)} onMouseEnter={() => setHoveredChannelId(channel.id)} onMouseLeave={() => setHoveredChannelId(null)} @@ -120,17 +120,17 @@ const GuideRow = React.memo(({ index, style, data }) => { align="center" justify="center" style={{ - position: 'absolute', - top: 0, - left: 0, - right: 0, - bottom: 0, - width: '100%', - height: '100%', backgroundColor: 'rgba(0, 0, 0, 0.7)', zIndex: 10, animation: 'fadeIn 0.2s', }} + pos={'absolute'} + top={0} + left={0} + right={0} + bottom={0} + w={'100%'} + h={'100%'} > @@ -141,25 +141,25 @@ const GuideRow = React.memo(({ index, style, data }) => { align="center" justify="space-between" style={{ - width: '100%', - height: '100%', - padding: '4px', boxSizing: 'border-box', zIndex: 5, - position: 'relative', }} + w={'100%'} + h={'100%'} + p={'4px'} + pos={'relative'} > { size="sm" weight={600} style={{ - position: 'absolute', - bottom: '4px', - left: '50%', transform: 'translateX(-50%)', backgroundColor: '#18181B', - padding: '2px 8px', - borderRadius: 4, - fontSize: '0.85em', - border: '1px solid #27272A', - height: '24px', - display: 'flex', alignItems: 'center', justifyContent: 'center', - minWidth: '36px', }} + pos={'absolute'} + bottom={4} + left={'50%'} + p={'2px 8px'} + bdrs={4} + fz={'0.85em'} + bd={'1px solid #27272A'} + h={'24px'} + display={'flex'} + miw={'36px'} > {channel.channel_number || '-'} @@ -199,12 +199,12 @@ const GuideRow = React.memo(({ index, style, data }) => { {channelPrograms.length > 0 ? ( channelPrograms.map((program) => @@ -217,18 +217,18 @@ const GuideRow = React.memo(({ index, style, data }) => { No program data @@ -1074,31 +1074,24 @@ export default function TVChannelGuide({ startDate, endDate }) { className="guide-program-container" key={`${channel?.id || 'unknown'}-${program.id || `${program.tvg_id}-${program.start_time}`}`} style={{ - position: 'absolute', - left: leftPx + gapSize, - top: 0, - width: isExpanded ? expandedWidthPx : widthPx, - height: rowHeight - 4, cursor: 'pointer', zIndex: isExpanded ? 25 : 5, - transition: isExpanded - ? 'height 0.2s ease, width 0.2s ease' - : 'height 0.2s ease', + transition: isExpanded ? 'height 0.2s ease, width 0.2s ease' : 'height 0.2s ease', }} + pos={'absolute'} + left={leftPx + gapSize} + top={0} + w={isExpanded ? expandedWidthPx : widthPx} + h={rowHeight - 4} onClick={(event) => handleProgramClick(program, event)} > {recording && ( @@ -1169,13 +1167,13 @@ export default function TVChannelGuide({ startDate, endDate }) { {program.description} @@ -1183,7 +1181,7 @@ export default function TVChannelGuide({ startDate, endDate }) { )} {isExpanded && ( - + {!isPast && ( @@ -1477,34 +1473,34 @@ export default function TVChannelGuide({ startDate, endDate }) { {/* Guide container with headers and scrollable content */} {/* Logo header - Sticky, non-scrollable */} {/* Logo header cell - sticky in both directions */} {/* Timeline header with its own scrollbar */} @@ -1512,26 +1508,26 @@ export default function TVChannelGuide({ startDate, endDate }) { style={{ flex: 1, overflow: 'hidden', - position: 'relative', }} + pos={'relative'} > {' '} {hourTimeline.map((hourData) => { @@ -1541,15 +1537,15 @@ export default function TVChannelGuide({ startDate, endDate }) { handleTimeClick(time, e)} > {/* Remove the special day label for new days since we'll show day for all hours */} @@ -1558,25 +1554,23 @@ export default function TVChannelGuide({ startDate, endDate }) { {/* Show day above time for every hour using the same format */} {formatDayLabel(time)}{' '} {/* Use same formatDayLabel function for all hours */} @@ -1590,38 +1584,38 @@ export default function TVChannelGuide({ startDate, endDate }) { {/* Hour boundary marker - more visible */} {/* Quarter hour tick marks */} {[15, 30, 45].map((minute) => ( ))} @@ -1638,22 +1632,22 @@ export default function TVChannelGuide({ startDate, endDate }) { ref={guideContainerRef} style={{ flex: 1, - position: 'relative', overflow: 'hidden', }} + pos={'relative'} > {nowPosition >= 0 && ( )} @@ -1674,13 +1668,7 @@ export default function TVChannelGuide({ startDate, endDate }) { {GuideRow} ) : ( - + No channels match your filters