Skip to content

Commit

Permalink
Merge pull request #3801 from continuedev/dallin/tall-images
Browse files Browse the repository at this point in the history
Fix: Tall Images in Editor
  • Loading branch information
Patrick-Erichsen authored Jan 22, 2025
2 parents aaf1a60 + 156301d commit 9c21960
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gui/src/components/mainInput/TipTapEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ function TipTapEditor(props: TipTapEditorProps) {
"Images need to be in jpg or png format and less than 10MB in size.",
]);
}
return undefined;
}

const { prevRef, nextRef, addRef } = useInputHistory(props.historyKey);
Expand Down Expand Up @@ -351,7 +350,7 @@ function TipTapEditor(props: TipTapEditorProps) {
},
}).configure({
HTMLAttributes: {
class: "editor-image bg-black object-contain max-h-[250px] w-full",
class: "object-contain max-h-[210px] max-w-full mx-1",
},
}),
Placeholder.configure({
Expand Down Expand Up @@ -802,7 +801,7 @@ function TipTapEditor(props: TipTapEditorProps) {
const contextItem = rifWithContentsToContextItem(
data.rangeInFileWithContents,
);
console.log(contextItem);

let index = 0;
for (const el of editor.getJSON()?.content ?? []) {
if (el.attrs?.item?.name === contextItem.name) {
Expand Down

0 comments on commit 9c21960

Please sign in to comment.