fix sidebar, v0.1.5
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing

This commit is contained in:
2026-02-23 12:57:37 +01:00
parent aff9c889a1
commit c91ae95b96
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@panic/web-ui", "name": "@panic/web-ui",
"version": "0.1.4", "version": "0.1.5",
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
"description": "Core components for panic.haus web applications", "description": "Core components for panic.haus web applications",
"type": "module", "type": "module",

View File

@@ -13,7 +13,7 @@ type SidebarNavItemProps = {
export function SidebarNavItem({ to, label, icon: Icon, collapsed, onClick }: Readonly<SidebarNavItemProps>) { export function SidebarNavItem({ to, label, icon: Icon, collapsed, onClick }: Readonly<SidebarNavItemProps>) {
const layoutClass = collapsed const layoutClass = collapsed
? 'px-2 justify-start lg:mx-auto lg:w-8 lg:justify-center lg:px-0' ? 'mx-auto w-8 justify-center px-0'
: 'px-2 lg:w-full lg:justify-start'; : 'px-2 lg:w-full lg:justify-start';
return ( return (