diff --git a/CHANGELOG.md b/CHANGELOG.md index 50bf314..c9165ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index f759307..de27992 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/templates/DashboardTemplate/Sider/index.tsx b/src/templates/DashboardTemplate/Sider/index.tsx index 9e53609..e975584 100644 --- a/src/templates/DashboardTemplate/Sider/index.tsx +++ b/src/templates/DashboardTemplate/Sider/index.tsx @@ -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). */} - - {headerSidebar?.(collapsed ?? false)} - + {(sidebarMode === 'fullHeight' || + (sidebarMode === 'contentHeight' && collapsed)) && ( + + {headerSidebar?.(collapsed ?? false)} + + )} {children}