Skip to content

Commit 4a92822

Browse files
committed
align some styling
1 parent da4ee41 commit 4a92822

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

apps/web/src/hooks/use-code-highlighter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export const useCodeHighlighter = ({
115115
"py-3",
116116
"relative",
117117
"shadow-none",
118-
"text-base",
118+
"text-sm",
119119
"leading-[inherit]",
120120
"text-[color:var(--code-foreground)]",
121121
!expanded && "max-h-72",
@@ -133,7 +133,7 @@ export const useCodeHighlighter = ({
133133
wrapped
134134
? "whitespace-pre-wrap break-words"
135135
: "whitespace-pre",
136-
"text-base",
136+
"text-sm",
137137
"leading-[inherit]",
138138
"text-[color:var(--code-foreground)]",
139139
);
@@ -146,7 +146,7 @@ export const useCodeHighlighter = ({
146146
console.error("Error highlighting code", error);
147147
if (!cancelled) {
148148
setHighlightedCode(
149-
`<pre class="px-4 py-3 whitespace-pre text-base leading-[inherit] text-(--code-foreground)"><code class="text-base leading-[inherit]">${codeString}</code></pre>`,
149+
`<pre class="px-4 py-3 whitespace-pre text-sm leading-[inherit] text-(--code-foreground)"><code class="text-sm leading-[inherit]">${codeString}</code></pre>`,
150150
);
151151
}
152152
} finally {

apps/web/src/routes/chat/-components/chat-composer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function ChatComposer({
1818
enabledModels,
1919
}: ChatComposerProps) {
2020
return (
21-
<div className="shrink-0 border-t bg-background/95 px-4 py-4 backdrop-blur supports-backdrop-filter:bg-background/60 sm:px-6">
21+
<div className="shrink-0 border-t bg-background/60 px-4 py-4 sm:px-6">
2222
<div className="w-full">
2323
<MessageInput
2424
disabled={disabled}

apps/web/src/routes/settings/appearance.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { useMutation, useQueryClient } from "@tanstack/react-query";
22
import { createFileRoute } from "@tanstack/react-router";
33
import { toast } from "sonner";
44
import { ModeToggle } from "@/web/components/navigation/mode-toggle";
5-
import { Button } from "@/web/components/ui/button";
65
import {
76
Card,
87
CardContent,
@@ -84,18 +83,22 @@ function AppearanceSettings() {
8483
{chatWidthOptions.map((option) => {
8584
const isActive = chatWidth === option.id;
8685
return (
87-
<Button
86+
<button
8887
key={option.id}
89-
variant={isActive ? "secondary" : "ghost"}
90-
className="flex h-auto w-full flex-col items-start gap-1 px-4 py-3 text-left"
88+
type="button"
89+
className={`flex w-full cursor-pointer flex-col gap-2 p-4 text-left ${
90+
isActive
91+
? "border bg-background/60 hover:bg-background/80"
92+
: "hover:border hover:bg-muted/50"
93+
}`}
9194
onClick={() => handleChatWidthChange(option.id)}
9295
disabled={updateChatWidthMutation.isPending}
9396
>
9497
<span className="font-medium text-sm">{option.label}</span>
9598
<span className="text-muted-foreground text-xs">
9699
{option.description}
97100
</span>
98-
</Button>
101+
</button>
99102
);
100103
})}
101104
</CardContent>

0 commit comments

Comments
 (0)