Skip to content

Commit

Permalink
remove max width from editor input component
Browse files Browse the repository at this point in the history
  • Loading branch information
stilt0n committed Dec 22, 2024
1 parent dac05c7 commit 9252467
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@
.rendered-recipe.prose {
max-width: 55rem;
}

.recipe-editor.prose {
max-width: none;
padding-left: 1rem;
padding-right: 1rem;
}
2 changes: 1 addition & 1 deletion components/editor/editor-input.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const EditorInput = ({
id={editorId}
editor={editor}
className={cn(
'prose prose-zinc bg-white',
'prose prose-zinc recipe-editor bg-white',
'outline outline-1 outline-zinc-200 rounded-sm focus-within:outline-2 focus-within:outline-zinc-400',
props.className
)}
Expand Down
4 changes: 3 additions & 1 deletion components/recipe-edit-form.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ export const RecipeForm = ({
: undefined
}
/>
<Button type='submit'>Submit</Button>
<Button className='mt-6' type='submit'>
Submit
</Button>
</form>
</>
);
Expand Down

0 comments on commit 9252467

Please sign in to comment.