Skip to content

Commit aa27cd3

Browse files
committed
🤖 fix: resolve lint issues and rebase onto main
- Remove unused KebabMenuItem import - Fix Tailwind CSS class ordering - Fix prettier formatting issues - Rebase onto origin/main _Generated with `mux`_
1 parent f28ccb5 commit aa27cd3

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/components/ChatInput/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ export const ChatInput: React.FC<ChatInputProps> = (props) => {
856856
className="bg-separator border-border-light relative flex flex-col gap-1 border-t px-[15px] pt-[5px] pb-[15px]"
857857
data-component="ChatInputSection"
858858
>
859-
<div className="max-w-4xl mx-auto w-full">
859+
<div className="mx-auto w-full max-w-4xl">
860860
{/* Creation error toast */}
861861
{variant === "creation" && creationState?.error && (
862862
<div className="mb-2 rounded border border-red-700 bg-red-900/20 px-3 py-2 text-sm text-red-400">

src/components/Messages/MessageWindow.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const MessageWindow: React.FC<MessageWindowProps> = ({
6767
"mt-4 mb-1 flex w-full flex-col relative isolate w-fit",
6868
variant === "user" && "ml-auto",
6969
variant === "assistant" && "text-white",
70-
isLastPartOfMessage && "mb-4"
70+
isLastPartOfMessage && "mb-4"
7171
)}
7272
data-message-block
7373
>
@@ -82,7 +82,7 @@ export const MessageWindow: React.FC<MessageWindowProps> = ({
8282
<div className="relative z-10 flex flex-col gap-2">
8383
<div data-message-content>
8484
{showJson ? (
85-
<pre className="m-0 overflow-x-auto rounded-xl border border-white/10 bg-black/30 p-3 text-[12px] leading-snug text-white/80 whitespace-pre-wrap">
85+
<pre className="m-0 overflow-x-auto rounded-xl border border-white/10 bg-black/30 p-3 text-[12px] leading-snug whitespace-pre-wrap text-white/80">
8686
{JSON.stringify(message, null, 2)}
8787
</pre>
8888
) : (
@@ -114,7 +114,7 @@ export const MessageWindow: React.FC<MessageWindowProps> = ({
114114
/>
115115
</div>
116116
<div
117-
className="flex min-w-0 flex-1 flex-wrap items-center gap-2 text-xs text-muted"
117+
className="text-muted flex min-w-0 flex-1 flex-wrap items-center gap-2 text-xs"
118118
data-message-meta-right
119119
>
120120
{rightLabel}
@@ -143,10 +143,10 @@ const IconActionButton: React.FC<IconActionButtonProps> = ({ button }) => {
143143
aria-label={button.label}
144144
variant="ghost"
145145
size="icon"
146-
className="flex items-center justify-center [&_svg]:size-3.5 h-6 w-6 text-placeholder"
146+
className="text-placeholder flex h-6 w-6 items-center justify-center [&_svg]:size-3.5"
147147
>
148148
{button.icon ?? (
149-
<span className="text-[10px] font-semibold uppercase tracking-wide">{button.label}</span>
149+
<span className="text-[10px] font-semibold tracking-wide uppercase">{button.label}</span>
150150
)}
151151
</Button>
152152
);

src/components/Messages/UserMessage.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { MessageWindow } from "./MessageWindow";
55
import { TerminalOutput } from "./TerminalOutput";
66
import { formatKeybind, KEYBINDS } from "@/utils/ui/keybinds";
77
import { useCopyToClipboard } from "@/hooks/useCopyToClipboard";
8-
import type { KebabMenuItem } from "@/components/KebabMenu";
98
import { copyToClipboard } from "@/utils/clipboard";
109
import { usePersistedState } from "@/hooks/usePersistedState";
1110
import { VIM_ENABLED_KEY } from "@/constants/storage";
@@ -100,7 +99,7 @@ export const UserMessage: React.FC<UserMessageProps> = ({
10099
variant="user"
101100
>
102101
{content && (
103-
<pre className="m-0 font-primary leading-6 text-slate-100 break-words whitespace-pre-wrap">
102+
<pre className="font-primary m-0 leading-6 break-words whitespace-pre-wrap text-slate-100">
104103
{content}
105104
</pre>
106105
)}

0 commit comments

Comments
 (0)