Skip to content

Commit

Permalink
Merge pull request #1417 from Arnei/random-typescript-fixes
Browse files Browse the repository at this point in the history
Fix random typing issues
  • Loading branch information
geichelberger authored Dec 5, 2024
2 parents b71c9b1 + 9d364a8 commit 43b02b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/TrackSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ const SelectButton: React.FC<selectButtonInterface> = ({ 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(); }
Expand Down
2 changes: 1 addition & 1 deletion src/redux/videoSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 43b02b4

Please sign in to comment.