Skip to content

fix: preserve original aspect ratio for clip cells#82

Open
nthnerr wants to merge 2 commits into
crptk:developmentfrom
nthnerr:development
Open

fix: preserve original aspect ratio for clip cells#82
nthnerr wants to merge 2 commits into
crptk:developmentfrom
nthnerr:development

Conversation

@nthnerr

@nthnerr nthnerr commented Jun 8, 2026

Copy link
Copy Markdown

Issue:

Clip tiles were rendered as uniform squares regardless of source video dimensions. This fix makes each tile respect the clip's original aspect ratio.

Changes:

  • backend/app.py — added get_video_dimensions() using PyAV; included width/height in collect_scenes()
  • frontend/src/types/domain.ts — added width/height to ClipItem
  • frontend/src/hooks/useImportExport.ts — mapped width/height in parseInitialClips()
  • frontend/src/components/clipsGrid/LazyClip.tsx — applied aspect-ratio inline style to clip wrapper

Before:

{7F37BE8F-FA36-430E-BF74-BE96C26F255E}

After:

{FE47FF2E-C19C-4E3C-BB5D-835145AA8A8D}

@nthnerr

nthnerr commented Jun 8, 2026

Copy link
Copy Markdown
Author
Screenshot (126)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant