Skip to content

Email for professionals and teams

improve UI

Hieu Nguyen (Jack)60e22badc06c
diff --git a/src/components/components-nav.tsx b/src/components/components-nav.tsx
index 79d4c55..ca3b5a0 100644
--- a/src/components/components-nav.tsx
+++ b/src/components/components-nav.tsx
@@ -47,7 +47,7 @@ export function NavItem({ link, iconClassName, labelClassName, wrap }: Props) {
if (!Icon) return null;
const active = pathname === link.href || pathname.startsWith(`${link.href}/`);
const classes = cn(
- "flex h-9 items-center gap-3 rounded-r-full text-sm font-medium text-neutral-700 transition-colors",
+ "flex h-9 items-center gap-3 rounded-r-full text-sm font-medium text-neutral-700 transition-colors max-md:min-h-11 max-md:text-base",
minimal && "relative mx-auto w-10 justify-center rounded-full px-0",
active ? "bg-blue-100 text-blue-900" : "hover:bg-stone-200/60",
dragOver && "bg-blue-50 text-blue-900 ring-1 ring-blue-200",
@@ -149,9 +149,9 @@ export function NavItem({ link, iconClassName, labelClassName, wrap }: Props) {
// className={minimal ? "h-4 w-4" : "h-5 w-5"}
style={{ color: link.iconColor }}
size={16}
- className={cn(wrap && !minimal && "mt-0.5 shrink-0", iconClassName)}
+ className={cn("max-md:h-5 max-md:w-5", wrap && !minimal && "mt-0.5 shrink-0", iconClassName)}
/>
- {!minimal && <span className={cn("flex-1", wrap && "min-w-0 break-words leading-5", labelClassName, typeof link.count === "number" && link.count > 0 && "font-semibold")}>{link.label}</span>}
+ {!minimal && <span className={cn("flex-1", wrap && "min-w-0 break-words leading-5 max-md:leading-6", labelClassName, typeof link.count === "number" && link.count > 0 && "font-semibold")}>{link.label}</span>}
{!minimal && typeof link.count === "number" && link.count > 0 && (
<span className={cn("ml-auto mr-3 rounded-full px-2 py-0.5 text-sm font-semibold text-neutral-700", wrap && "shrink-0 py-0 leading-5")}>
{link.count > 99 ? "99+" : link.count}
diff --git a/src/components/dashboard-nav.tsx b/src/components/dashboard-nav.tsx
index 7a1fa32..fa30af0 100644
--- a/src/components/dashboard-nav.tsx
+++ b/src/components/dashboard-nav.tsx
@@ -182,7 +182,7 @@ export function DashboardNav({ className }: { className?: string }) {
{minimal && <hr className="mx-3 my-2 border-neutral-200/70" />}
{!minimal && (
<div className="mt-2 flex h-8 items-center justify-between px-3">
- <span className="font-medium tracking-wide text-neutral-900 text-sm">
+ <span className="font-medium tracking-wide text-neutral-900 text-sm max-md:text-base">
Folders
</span>
{selectedMailbox && (
diff --git a/src/components/sidebar-header.tsx b/src/components/sidebar-header.tsx
index 77335e4..9f7e26e 100644
--- a/src/components/sidebar-header.tsx
+++ b/src/components/sidebar-header.tsx
@@ -11,12 +11,12 @@ export function SidebarHeader({ href, label }: SidebarHeaderProps) {
const branding = useBranding();
const { minimal, toggle } = useSidebar();
const toggleButton = <button type="button" onClick={toggle} className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full text-neutral-600 hover:bg-neutral-200" aria-label={minimal ? "Expand menu" : "Collapse menu"}>
- {minimal ? <img src={branding.iconUrl} height={28} width={28} alt="" /> : <TextAlignJustify size={18} />}
+ {minimal ? <img src={branding.iconUrl} height={32} width={32} alt="" /> : <TextAlignJustify size={18} />}
</button>;
return (
<div className={`mb-3 flex h-10 items-center ${minimal ? "" : "gap-2 px-1"}`}>
{minimal ? <Tooltip label="Expand menu" placement="right">{toggleButton}</Tooltip> : toggleButton}
- {!minimal && <Link href={href} className="flex min-w-0 items-center gap-3"><img src={branding.iconUrl} height={28} width={28} alt="" /><span className="truncate text-lg font-semibold text-neutral-800">{label ?? branding.appName}</span></Link>}
+ {!minimal && <Link href={href} className="flex min-w-0 items-center gap-3"><img src={branding.iconUrl} height={32} width={32} alt="" /><span className="truncate text-lg font-semibold text-neutral-800">{label ?? branding.appName}</span></Link>}
</div>
);
}