Skip to content

feat: auto-adapt video modal - #2764

Merged
seefs001 merged 1 commit into
QuantumNous:mainfrom
feitianbubu:pr/4baa0f472b6f35ce3426cd8ea0d13f38e2f4eb81
Feb 2, 2026
Merged

feat: auto-adapt video modal#2764
seefs001 merged 1 commit into
QuantumNous:mainfrom
feitianbubu:pr/4baa0f472b6f35ce3426cd8ea0d13f38e2f4eb81

Conversation

@feitianbubu

@feitianbubu feitianbubu commented Jan 28, 2026

Copy link
Copy Markdown
Member

任务日志视频自适应窗口宽高
image

@coderabbitai

coderabbitai Bot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

Modal and video player styling is enhanced with responsive height and width constraints. The outer container, video element, and modal dimensions are adjusted to better utilize available space when displaying video content.

Changes

Cohort / File(s) Summary
Video Modal Responsive Sizing
web/src/components/table/task-logs/modals/ContentModal.jsx
Adjusted modal dimensions for video mode (70vh body height, 90vw width, 960px maxWidth). Added height constraints and object-fit styling to video element (height: '100%', maxWidth, maxHeight, objectFit: contain). Added height: '100%' to outer container for full-space utilization.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Possibly related PRs

Poem

🐰 A modal grows tall, responsive and wide,
Video fills every corner with pride,
Ninety viewport units, seventy tall,
Now content stretches to fill the wall,
Hop along smoothly through screens big and small! 🎬

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: auto-adapt video modal' accurately describes the main change, which makes a modal container for videos automatically adapt to window dimensions with responsive sizing.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@seefs001
seefs001 merged commit ee04878 into QuantumNous:main Feb 2, 2026
1 check passed
ennnnny pushed a commit to ennnnny/new-api that referenced this pull request Mar 17, 2026
…5ce3426cd8ea0d13f38e2f4eb81

feat: auto-adapt video modal
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.

2 participants