Closed zzxming closed 1 month ago
The changes introduce modifications to the styling and functionality related to full-screen elements and screenshot capabilities. The fullscreen.scss
file updates CSS rules for various full-screen selectors and adds new classes to manage scrolling behavior. The screenshot/index.ts
file enhances the screenshot process by improving scroll management, while the scroll-lock.ts
file introduces utility functions to calculate scrollbar width and lock scrolling. Overall, these changes aim to refine user experience during full-screen and screenshot operations.
File Path | Change Summary |
---|---|
packages/fluent-editor/src/assets/fullscreen.scss |
Modified CSS rules for full-screen elements, added new .scroll class with &--lock and &__wrap modifiers to manage scrolling behavior. |
packages/fluent-editor/src/screenshot/index.ts |
Updated screenshot functionality to utilize lockScroll for managing scroll during screenshots, modified selection retrieval, and improved cleanup for scroll locking. |
packages/fluent-editor/src/toolbar/index.ts |
Changed the argument for this.quill.focus() to prevent scrolling when the format is 'screenshot'. |
packages/fluent-editor/src/utils/scroll-lock.ts |
Introduced getScrollBarWidth and lockScroll functions for managing scrollbar width and locking scroll behavior on target elements. |
bug
In a world where screens expand,
A rabbit hops with a steady hand.
With styles new and scrolls in check,
Screenshots snap, what the heck!
Lock the scroll, let’s take a peek,
Full-screen fun, so unique! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
New Features
.scroll
class for enhanced scrolling behavior in full-screen mode.Improvements
Bug Fixes