diff --git a/src/main/TrackSelection.tsx b/src/main/TrackSelection.tsx index d26985f0c..8239823da 100644 --- a/src/main/TrackSelection.tsx +++ b/src/main/TrackSelection.tsx @@ -191,13 +191,13 @@ const SelectButton: React.FC = ({ handler, text, Icon, to const buttonStyle = [ active ? basicButtonStyle(theme) : deactivatedButtonStyle, - { + css({ padding: "16px", maxHeight: "21px", boxShadow: "", background: `${theme.element_bg}`, textWrap: "nowrap", - }]; + })]; const clickHandler = () => { if (active) { handler(); } diff --git a/src/redux/videoSlice.ts b/src/redux/videoSlice.ts index e8884c8eb..c3532b6a4 100644 --- a/src/redux/videoSlice.ts +++ b/src/redux/videoSlice.ts @@ -505,7 +505,7 @@ const setThumbnailHelper = (state: video, id: Track["id"], uri: Track["thumbnail const ZOOM_SECONDS_VISIBLE = 20 * 1000; -function timelineZoomMax(state) { +function timelineZoomMax(state: { duration: number }) { const maxZoom = state.duration / ZOOM_SECONDS_VISIBLE; return Math.max(2, Math.ceil(maxZoom));