Closed BerglundDaniel closed 10 months ago
The updates involve enhancing the user interface's scrolling functionality and dynamic behavior. The style.scss
file has been configured to enable automatic vertical scrolling for the body
element. In the TypeScript file for the sidebar component, new hooks have been introduced to manage the scrollability state of the sidebar, adjusting its behavior based on content height. The sidebar's markup has been updated to reflect this dynamic state and improve code readability, particularly around conditional elements.
File | Summary |
---|---|
public/scss/style.scss |
Added overflow-y: auto; to the body selector to enable vertical scrolling. |
public/ts/sidebar.tsx |
Imported useEffect , useRef , useState from "preact/hooks"; added state and effect hooks for sidebar scrollability; refactored return element to use sidebarRef and conditional class; improved conditional rendering readability. |
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 X ?
Cleaned up the git history in PR #366
Summary by CodeRabbit
New Features
Refactor
Style