Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
chore: cleanup layut
Faisal Amirca93c79eaefe
diff --git a/web-app/src/components/left-sidebar/index.tsx b/web-app/src/components/left-sidebar/index.tsxindex 491537a67..f27b1bb19 100644--- a/web-app/src/components/left-sidebar/index.tsx+++ b/web-app/src/components/left-sidebar/index.tsx@@ -11,13 +11,14 @@ import {SidebarHeader,SidebarRail,} from '@/components/ui/sidebar'+import { cn } from '@/lib/utils'export function LeftSidebar() {return (<Sidebar variant="floating" collapsible="offcanvas"><SidebarHeader className="flex px-1">- <div className="flex items-center w-full justify-between">- <span className="ml-2 font-medium font-studio">Jan</span>+ <div className={cn("flex items-center w-full justify-between", IS_MACOS && "justify-end")}>+ {!IS_MACOS && <span className="ml-2 font-medium font-studio">Jan</span>}<SidebarTrigger className="text-muted-foreground rounded-full hover:bg-sidebar-foreground/8! -mt-0.5" /></div><NavMain />diff --git a/web-app/src/routes/hub/index.tsx b/web-app/src/routes/hub/index.tsxindex 4b994a79b..3e067daf1 100644--- a/web-app/src/routes/hub/index.tsx+++ b/web-app/src/routes/hub/index.tsx@@ -431,7 +431,7 @@ function HubContent() {<div className="flex flex-col h-svh w-full"><div className="flex flex-col h-full w-full "><HeaderPage>- <div className="pr-4 py-3 h-10 w-full flex items-center justify-between relative z-20">+ <div className={cn("pr-3 py-3 h-10 w-full flex items-center justify-between relative z-20", !IS_MACOS && "pr-30")}><div className="flex items-center gap-2 w-full">{isSearching ? (<Loader className="shrink-0 size-4 animate-spin text-muted-foreground" />diff --git a/web-app/src/routes/settings/assistant.tsx b/web-app/src/routes/settings/assistant.tsxindex f8715a3af..aea56afd9 100644--- a/web-app/src/routes/settings/assistant.tsx+++ b/web-app/src/routes/settings/assistant.tsx@@ -12,6 +12,7 @@ import { AvatarEmoji } from '@/containers/AvatarEmoji'import { useTranslation } from '@/i18n/react-i18next-compat'import { Button } from '@/components/ui/button'import SettingsMenu from '@/containers/SettingsMenu'+import { cn } from '@/lib/utils'// eslint-disable-next-line @typescript-eslint/no-explicit-anyexport const Route = createFileRoute(route.settings.assistant as any)({@@ -53,7 +54,7 @@ function AssistantContent() {return (<div className="flex flex-col h-svh w-full"><HeaderPage>- <div className="flex items-center justify-between w-full mr-2 pr-30">+ <div className={cn("flex items-center justify-between w-full mr-2 pr-3", !IS_MACOS && "pr-30")}><span className="font-medium text-base font-studio">{t('common:settings')}</span>diff --git a/web-app/src/routes/settings/hardware.tsx b/web-app/src/routes/settings/hardware.tsxindex ff14bbf01..9e6d0b14e 100644--- a/web-app/src/routes/settings/hardware.tsx+++ b/web-app/src/routes/settings/hardware.tsx@@ -12,7 +12,7 @@ import { useEffect, useState } from 'react'import { IconDeviceDesktopAnalytics } from '@tabler/icons-react'import { useServiceHub } from '@/hooks/useServiceHub'import type { HardwareData, SystemUsage } from '@/services/hardware/types'-import { formatMegaBytes } from '@/lib/utils'+import { cn, formatMegaBytes } from '@/lib/utils'import { toNumber } from '@/utils/number'import { useModelProvider } from '@/hooks/useModelProvider'import { useAppState } from '@/hooks/useAppState'@@ -121,7 +121,7 @@ function HardwareContent() {return (<div className="flex flex-col h-svh w-full"><HeaderPage>- <div className="flex items-center gap-2 justify-between w-full pr-3">+ <div className={cn("flex items-center justify-between w-full mr-2 pr-3", !IS_MACOS && "pr-30")}><span className='font-medium text-base font-studio'>{t('common:settings')}</span><Buttonvariant="secondary"diff --git a/web-app/src/routes/settings/mcp-servers.tsx b/web-app/src/routes/settings/mcp-servers.tsxindex d1cde6511..d8e61826d 100644--- a/web-app/src/routes/settings/mcp-servers.tsx+++ b/web-app/src/routes/settings/mcp-servers.tsx@@ -30,6 +30,7 @@ import { useAppState } from '@/hooks/useAppState'import { listen } from '@tauri-apps/api/event'import { SystemEvent } from '@/types/events'import { Button } from '@/components/ui/button'+import { cn } from '@/lib/utils'// Function to mask sensitive URL parameters@@ -363,7 +364,7 @@ function MCPServersDesktop() {<Fragment><div className="flex flex-col h-svh w-full"><HeaderPage>- <div className="flex items-center gap-2 w-full justify-between pr-4">+ <div className={cn("flex items-center justify-between w-full mr-2 pr-3", !IS_MACOS && "pr-30")}><span className='font-medium text-base font-studio'>{t('common:settings')}</span><Button variant="secondary" size="sm" onClick={() => handleOpenDialog()}><IconPlus size={18} className="text-muted-foreground" />