copilot-swe-agent[bot] ArnavSingh76533 commited on
Commit ·
a930f4f
1
Parent(s): 6fc62e6
Move progress bar below controls and improve layout spacing
Browse files- Reorder controls: buttons on top, progress bar at bottom
- Reduce padding between control elements for compact layout
- Add smaller text size for time display
Co-authored-by: ArnavSingh76533 <160649079+ArnavSingh76533@users.noreply.github.com>
197 unmodified lines19819920020120220320420520620720820921021121221321421521621751 unmodified lines2692702712722732742751 unmodified line2772782792802812822832 unmodified lines286287288289290291292115 unmodified lines40840941041141241341426 unmodified lines441442443444445446197 unmodified lines</div></InteractionHandler>{/* Bottom control cluster: progress bar on top, control buttons below */}<div className="bg-dark-900/40"><InputSliderclassName={"bg-transparent"}value={progress}onChange={(value) => {setProgress(value)mouseMoved()}}max={duration}setSeeking={setSeeking}showValueHover={true}/><div className={"flex flex-row px-1 pb-1 items-center"}>{playlist.currentIndex > 0 && (<ControlButtontooltip={"Play previous"}51 unmodified lines/><ControlButtontooltip={"Current progress"}className={"ml-auto flex items-center py-1"}onClick={() => {if (show) {setShowTimePlayed(!showTimePlayed)1 unmodified line}}interaction={showControlsAction}><span>{(showTimePlayed? secondsToTime(progress): "-" + secondsToTime(duration - progress)) +2 unmodified lines</span></ControlButton>{/* PiP button - swapped position with Fullscreen */}<ControlButtontooltip={pipEnabled ? "Exit PiP" : "Enter PiP"}onClick={async () => {115 unmodified lines<IconMusic /></ControlButton>{/* Fullscreen button - swapped position with PiP */}<ControlButtontooltip={fullscreen ? "Leave fullscreen" : "Enter fullscreen"}onClick={async () => {26 unmodified lines{fullscreen ? <IconCompress /> : <IconExpand />}</ControlButton></div></div></InteractionHandler>197 unmodified lines19819920020120220320420520651 unmodified lines2582592602612622632641 unmodified line2662672682692702712722 unmodified lines275276277278279280281115 unmodified lines39739839940040140240326 unmodified lines430431432433434435436437438439440441442443444445446447197 unmodified lines</div></InteractionHandler>{/* Bottom control cluster: control buttons on top, progress bar below */}<div className="bg-dark-900/40"><div className={"flex flex-row px-1 py-0.5 items-center gap-0.5"}>{playlist.currentIndex > 0 && (<ControlButtontooltip={"Play previous"}51 unmodified lines/><ControlButtontooltip={"Current progress"}className={"ml-auto flex items-center py-0.5"}onClick={() => {if (show) {setShowTimePlayed(!showTimePlayed)1 unmodified line}}interaction={showControlsAction}><span className="text-sm">{(showTimePlayed? secondsToTime(progress): "-" + secondsToTime(duration - progress)) +2 unmodified lines</span></ControlButton>{/* PiP button */}<ControlButtontooltip={pipEnabled ? "Exit PiP" : "Enter PiP"}onClick={async () => {115 unmodified lines<IconMusic /></ControlButton>{/* Fullscreen button */}<ControlButtontooltip={fullscreen ? "Leave fullscreen" : "Enter fullscreen"}onClick={async () => {26 unmodified lines{fullscreen ? <IconCompress /> : <IconExpand />}</ControlButton></div>{/* Progress bar at bottom */}<InputSliderclassName={"bg-transparent pb-1"}value={progress}onChange={(value) => {setProgress(value)mouseMoved()}}max={duration}setSeeking={setSeeking}showValueHover={true}/></div></InteractionHandler>
components/player/Controls.tsx+18-17