diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 8a4d63c..b5893c0 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -16,7 +16,12 @@ import { SeekBar } from './SeekBar'; import { firstValueFrom, from, Observable } from 'rxjs'; import { first, map } from 'rxjs/operators'; import millisFromDuration from './helpers/millisFromDuration'; -import { zoomViewportIn, zoomViewportOut } from './helpers/zoom'; +import { + canZoomViewportIn, + canZoomViewportOut, + zoomViewportIn, + zoomViewportOut, +} from './helpers/zoom'; import toHHMMSS from './helpers/toHHMMSS'; import framesToDuration from './helpers/framesToDuration'; import { ClockIcon, ExternalLinkIcon } from '@heroicons/react/solid'; @@ -448,6 +453,8 @@ function App(): JSX.Element { void; onClip: () => void; onZoomIn: () => void; @@ -21,11 +23,14 @@ interface Props { const ControlBar: React.FC = React.memo((props: Props) => { const buttonStyle = - 'bg-gray-700 hover:bg-gray-600 text-white font-bold py-2 px-4 rounded'; + 'bg-gray-600 hover:bg-gray-500 text-white font-bold py-2 px-4 rounded'; + + const disabledButtonStyle = + 'bg-gray-700 text-white font-bold py-2 px-4 rounded cursor-auto'; const downloadButtonStyle = props.downloadClipEnabled - ? 'bg-green-700 hover:bg-green-600 text-white font-bold py-2 px-4 rounded absolute right-0' - : 'bg-gray-700 hover:cursor-not-allowed text-gray-500 font-bold py-2 px-4 rounded absolute right-0'; + ? 'bg-green-600 hover:bg-green-600 text-white font-bold py-2 px-4 rounded absolute right-0' + : 'bg-gray-600 hover:cursor-not-allowed text-gray-500 font-bold py-2 px-4 rounded absolute right-0'; const iconStyle = 'inline h-7 w-7 text-white-500'; @@ -67,13 +72,13 @@ const ControlBar: React.FC = React.memo((props: Props) => {