mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-12 03:48:56 +00:00
fix(ui): shrink the sidebar logo so it stops outweighing page titles (backport #44247 to rc/1.105.0) (#44251)
* fix(ui): shrink the sidebar logo so it stops outweighing page titles At h-7 the wordmark's capitals render about 21.5px tall, taller and heavier than the 24px page titles (about 17px capitals). h-5 brings them to about 15px, between the 13px nav labels and the page title. * fix(ui): keep the collapsed sidebar monogram at 28px
This commit is contained in:
parent
f0fa6e1b48
commit
b7acb75ceb
1 changed files with 2 additions and 1 deletions
|
|
@ -84,7 +84,8 @@ import { routeSegmentForPathname, uiHref } from "@/utils/uiHref";
|
|||
|
||||
const ICON = { strokeWidth: 1.75 } as const;
|
||||
|
||||
const LOGO_CLASS_NAME = "h-7 w-auto max-w-[150px] object-contain group-data-[collapsed=true]/sidebar:w-7";
|
||||
const LOGO_CLASS_NAME =
|
||||
"h-5 w-auto max-w-[150px] object-contain group-data-[collapsed=true]/sidebar:h-7 group-data-[collapsed=true]/sidebar:w-7";
|
||||
|
||||
function bundledLogoSrc(baseUrl: string, { dark, monogram }: { dark: boolean; monogram: boolean }): string {
|
||||
const query = [dark && "theme=dark", monogram && "variant=monogram"].filter(Boolean).join("&");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue