Skip to content

Commit

Permalink
fix: resize images to a more suitable size
Browse files Browse the repository at this point in the history
  • Loading branch information
Sembauke committed Nov 15, 2023
1 parent d03d1f2 commit 6528188
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/frontend/src/components/tiptap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ const Tiptap = ({ handleContentChange, content }) => {
}),
Image.configure({
inline: true,
HTMLAttributes: {
class: "add-image-form",
},
}),
Youtube.configure({
width: 480,
Expand Down
5 changes: 5 additions & 0 deletions apps/frontend/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@
height: 2rem;
margin: 0 0.5rem;
}

.add-image-form {
width: 40%;
height: 40%;
}

0 comments on commit 6528188

Please sign in to comment.