Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.10.1]

### Fixed

- Fix `HeaderSider` in `DashboardTemplate`.

## [1.10.0]

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "1byte-react-design",
"version": "1.10.0",
"version": "1.10.1",
"description": "A simple React UI library",
"main": "dist/index.js",
"module": "dist/index.js",
Expand Down
9 changes: 6 additions & 3 deletions src/templates/DashboardTemplate/Sider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,12 @@ export const DashboardTemplateSider: RdDashboardTemplateSiderComponent = forward
- For "contentHeight": when the screen shrinks into fixed overlay mode,
the headerSidebar still renders (at this point, the sider behaves like fullHeight).
*/}
<DashboardTemplateHeaderSidebarStyled fixedOnScroll={fixedHeaderOnScroll}>
{headerSidebar?.(collapsed ?? false)}
</DashboardTemplateHeaderSidebarStyled>
{(sidebarMode === 'fullHeight' ||
(sidebarMode === 'contentHeight' && collapsed)) && (
<DashboardTemplateHeaderSidebarStyled fixedOnScroll={fixedHeaderOnScroll}>
{headerSidebar?.(collapsed ?? false)}
</DashboardTemplateHeaderSidebarStyled>
)}

<DashboardTemplateSiderContentStyled>
{children}
Expand Down