-
-
Notifications
You must be signed in to change notification settings - Fork 364
bug(FullScreenService): sync fullscreen state with esc key event #5961
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
Conversation
Co-Authored-By: WarriorBlue <[email protected]>
Reviewer's GuideThis pull request refactors the fullscreen state synchronization by removing the JavaScript-managed Sequence diagram for updated fullscreen togglesequenceDiagram
actor User
participant Browser
participant FullScreenButton
participant fullscreen.js
User->>FullScreenButton: Click
FullScreenButton->>fullscreen.js: toggle()
alt Enter Fullscreen
fullscreen.js->>Browser: requestFullscreen()
Browser-->>CSS: Apply ':fullscreen' styles
else Exit Fullscreen
fullscreen.js->>Browser: exitFullscreen()
Browser-->>CSS: Remove ':fullscreen' styles
end
User->>Browser: Press ESC key
Browser-->>CSS: Remove ':fullscreen' styles
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ArgoZhang - I've reviewed your changes - here's some feedback:
- Consider if removing the
.bb-fs-openclass impacts any custom styling or JavaScript relying on it elsewhere. - Consider separating the parameter deprecation from the bug fix for clearer review history.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5961 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 670 670
Lines 30576 30576
Branches 4350 4350
=========================================
Hits 30576 30576 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Link issues
fixes #5960
Summary By Copilot
Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Improve fullscreen functionality by synchronizing fullscreen state and updating UI handling for fullscreen events
Bug Fixes:
Enhancements:
Chores: