Skip to content

Commit 7ccbcd0

Browse files
committed
fixes
1 parent 58ccce6 commit 7ccbcd0

2 files changed

Lines changed: 5 additions & 14 deletions

File tree

apps/code/src/renderer/features/message-editor/components/AttachmentsBar.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,7 @@ export function AttachmentsBar({ attachments, onRemove }: AttachmentsBarProps) {
153153
if (attachments.length === 0) return null;
154154

155155
return (
156-
<Flex
157-
gap="1"
158-
align="center"
159-
className="flex-wrap border-[var(--gray-a4)] border-b pr-2 pb-1.5"
160-
>
156+
<Flex gap="1" align="center" className="flex-wrap pb-1.5">
161157
{attachments.map((att) =>
162158
isImageFile(att.label) ? (
163159
<ImageThumbnail

apps/code/src/renderer/features/message-editor/components/MessageEditor.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,7 @@ function ModeAndBranchRow({
6464
}
6565

6666
return (
67-
<Flex
68-
align="center"
69-
justify="between"
70-
className="pr-2"
71-
style={{ overflow: "hidden" }}
72-
>
67+
<Flex align="center" justify="between" style={{ overflow: "hidden" }}>
7368
<Flex align="center" gap="2" flexShrink="0">
7469
{isBashMode ? (
7570
<Text
@@ -273,19 +268,19 @@ export const MessageEditor = forwardRef<EditorHandle, MessageEditorProps>(
273268
direction="column"
274269
gap="2"
275270
onClick={handleContainerClick}
276-
className={`rounded-md py-2 pr-0 pl-1.5 ${isBashMode ? "ring-1 ring-blue-9" : ""}`}
271+
className={`rounded-md py-2 pr-2 pl-1.5 ${isBashMode ? "ring-1 ring-blue-9" : ""}`}
277272
style={{ cursor: "text" }}
278273
>
279274
<AttachmentsBar attachments={attachments} onRemove={removeAttachment} />
280275

281276
<div
282-
className="cli-editor-scroll max-h-[200px] min-h-[50px] flex-1 overflow-y-auto text-[15px]"
277+
className="-mr-2 cli-editor-scroll max-h-[200px] min-h-[50px] flex-1 overflow-y-auto text-[15px]"
283278
style={{ position: "relative" }}
284279
>
285280
<EditorContent editor={editor} />
286281
</div>
287282

288-
<Flex justify="between" align="center" className="pt-1.5 pr-2">
283+
<Flex justify="between" align="center" className="pt-1.5">
289284
<Flex gap="2" align="center">
290285
<EditorToolbar
291286
disabled={disabled}

0 commit comments

Comments
 (0)