Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix random typing issues #1417

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading