Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
Layout improvements
Hakan Shehu897a8c3f9eb8
diff --git a/apps/desktop/src/renderer/components/layouts/layout-sidebar-footer.tsx b/apps/desktop/src/renderer/components/layouts/layout-sidebar-footer.tsxindex 624397d8..1bd315a1 100644--- a/apps/desktop/src/renderer/components/layouts/layout-sidebar-footer.tsx+++ b/apps/desktop/src/renderer/components/layouts/layout-sidebar-footer.tsx@@ -46,17 +46,16 @@ export function LayoutSidebarFooter() {<div className="p-2"><DropdownMenu open={open} onOpenChange={setOpen}><DropdownMenuTrigger asChild>- <button className="flex w-full items-center gap-2 rounded-md p-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground h-12 text-sm focus-visible:outline-none focus-visible:ring-0">+ <button className="flex w-full items-center gap-2 rounded-md p-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground h-10 text-sm focus-visible:outline-none focus-visible:ring-0"><Avatar- className="h-8 w-8 rounded-lg"+ className="h-7 w-7 rounded-lg"id={account.id}name={account.name}avatar={account.avatar}/>- <div className="grid flex-1 text-left text-sm leading-tight">- <span className="truncate font-semibold">{account.name}</span>- <span className="truncate text-xs">{account.email}</span>- </div>+ <p className="flex-1 text-left text-sm leading-tight truncate font-semibold">+ {account.name}+ </p><ChevronsUpDown className="ml-auto size-4" /><ReadStateIndicatorcount={importantCount}diff --git a/apps/desktop/src/renderer/components/layouts/layout-sidebar-header.tsx b/apps/desktop/src/renderer/components/layouts/layout-sidebar-header.tsxindex e2333442..77b347a1 100644--- a/apps/desktop/src/renderer/components/layouts/layout-sidebar-header.tsx+++ b/apps/desktop/src/renderer/components/layouts/layout-sidebar-header.tsx@@ -44,19 +44,16 @@ export const LayoutSidebarHeader = () => {<div className="p-2"><DropdownMenu open={open} onOpenChange={setOpen}><DropdownMenuTrigger asChild>- <button className="flex w-full items-center gap-2 rounded-md p-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground h-12 text-sm focus-visible:outline-none focus-visible:ring-0">- <div className="flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground">- <Avatar- id={workspace.id}- avatar={workspace.avatar}- name={workspace.name}- className="h-full w-full"- />- </div>- <div className="grid flex-1 text-left text-sm leading-tight">- <span className="truncate font-semibold">{workspace.name}</span>- <span className="truncate text-xs">Free Plan</span>- </div>+ <button className="flex w-full items-center gap-2 rounded-md p-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground h-10 text-sm focus-visible:outline-none focus-visible:ring-0">+ <Avatar+ id={workspace.id}+ avatar={workspace.avatar}+ name={workspace.name}+ className="size-7 rounded-lg"+ />+ <p className="flex-1 text-left text-sm leading-tight truncate font-semibold">+ {workspace.name}+ </p><ChevronsUpDown className="ml-auto size-4" /><ReadStateIndicatorcount={importantCount}diff --git a/apps/desktop/src/renderer/components/ui/header.tsx b/apps/desktop/src/renderer/components/ui/header.tsxindex 6e1a0a08..463890f5 100644--- a/apps/desktop/src/renderer/components/ui/header.tsx+++ b/apps/desktop/src/renderer/components/ui/header.tsx@@ -6,14 +6,16 @@ const Header = React.forwardRef<HTMLHeadingElement,React.HTMLAttributes<HTMLHeadingElement>>(({ className, ...props }, ref) => (- <header- ref={ref}- className={cn(- 'flex h-16 w-full shrink-0 items-center gap-2 transition-[width,height] ease-linear',- className- )}- {...props}- />+ <div className="p-2">+ <header+ ref={ref}+ className={cn(+ 'flex h-10 w-full shrink-0 items-center gap-2 transition-[width,height] ease-linear',+ className+ )}+ {...props}+ />+ </div>));Header.displayName = 'Header';