Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions frontend/public/maple-logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions frontend/public/maple-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 18 additions & 12 deletions frontend/src/chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
margin: 0;
color: var(--color-fg-default);
background-color: var(--color-canvas-default);
font-size: 14px;
line-height: 1.5;
font-size: 15px;
line-height: 1.65;
letter-spacing: 0.1px;
word-wrap: break-word;
}

Expand Down Expand Up @@ -341,8 +342,9 @@
.markdown-body p {
margin-top: 0;
margin-bottom: 10px;
font-size: 14px;
line-height: 1.5;
font-size: 15px;
line-height: 1.65;
letter-spacing: 0.1px;
}

.markdown-body blockquote {
Expand All @@ -357,8 +359,9 @@
margin-top: 0;
margin-bottom: 0;
padding-left: 2em;
font-size: 14px;
line-height: 1.5;
font-size: 15px;
line-height: 1.65;
letter-spacing: 0.1px;
}

.markdown-body ul {
Expand Down Expand Up @@ -608,13 +611,15 @@

.markdown-body li > p {
margin-top: 16px;
font-size: 14px;
line-height: 1.5;
font-size: 15px;
line-height: 1.65;
letter-spacing: 0.1px;
}

.markdown-body li {
font-size: 14px;
line-height: 1.5;
font-size: 15px;
line-height: 1.65;
letter-spacing: 0.1px;
}

.markdown-body li + li {
Expand Down Expand Up @@ -651,8 +656,9 @@
word-wrap: break-word;
overflow-wrap: break-word;
white-space: normal;
font-size: 14px;
line-height: 1.5;
font-size: 15px;
line-height: 1.65;
letter-spacing: 0.1px;
}

.markdown-body table tr {
Expand Down
30 changes: 11 additions & 19 deletions frontend/src/components/AccountMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { useNavigate, useRouter } from "@tanstack/react-router";
import { Dialog, DialogTrigger } from "./ui/dialog";
import { AccountDialog } from "./AccountDialog";
import { CreditUsage } from "./CreditUsage";
import { Badge } from "./ui/badge";
import { Badge } from "@/components/ui/badge";

import {
AlertDialog,
Expand Down Expand Up @@ -291,23 +291,8 @@ export function AccountMenu() {
<AlertDialog>
<Dialog>
<DropdownMenu onOpenChange={(open) => !open && setShowAboutMenu(false)}>
<div className="flex w-full max-w-full flex-col gap-2">
<div className="flex w-full flex-col items-center gap-2">
<div className="flex w-full justify-center">
<Link to="/pricing">
<Badge
variant="secondary"
className="bg-[hsl(var(--maple-tertiary-container))] text-[hsl(var(--maple-tertiary))] hover:bg-[hsl(var(--maple-tertiary-container))]/80 transition-colors cursor-pointer uppercase text-[10px]"
>
{billingStatus ? `${billingStatus.product_name} Plan` : "Loading..."}
</Badge>
</Link>
</div>
<div className="w-full">
<CreditUsage layout="ring" />
</div>
</div>
<div className="flex w-full justify-start">
<div className="flex w-full max-w-full items-end gap-2">
<div className="flex shrink-0 justify-start">
<DropdownMenuTrigger asChild>
<button
type="button"
Expand All @@ -321,10 +306,17 @@ export function AccountMenu() {
</button>
</DropdownMenuTrigger>
</div>
<Link
to="/pricing"
className="group/credit-link min-w-0 flex-1 rounded-xl outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
aria-label={billingStatus ? `${billingStatus.product_name} plan` : "Billing status"}
>
<CreditUsage />
</Link>
</div>
{/* align=start: panel aligns to sidebar content edge; center was relative to the small icon */}
<DropdownMenuContent
className="w-[calc(280px-2rem)] max-w-[calc(100vw-2rem)] overflow-hidden dark:bg-[hsl(var(--sidebar-chrome))]"
className="w-[calc(296px-2rem)] max-w-[calc(100vw-2rem)] overflow-hidden dark:bg-[hsl(var(--sidebar-chrome))]"
align="start"
side="top"
sideOffset={8}
Expand Down
Loading
Loading