Skip to content

Commit

Permalink
fix(styles): improve editor styling
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantinmuenster committed Dec 10, 2023
1 parent 57b73ca commit 3f872c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ import styled from "styled-components";

export const StyledEditor = styled("div")`
margin-top: 10px;
background-color: ${({ theme }) => theme.colors.neutral0};
.tiptap {
outline: none;
line-height: 1.25rem;
color: ${({ theme }) => theme.colors.neutral800};
min-height: 80px;
padding: 1rem 0.5rem;
padding: 0 1.5rem 1.5rem 1.5rem;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ export const StyledToolbar = styled("div")`
border: 1px solid ${({ theme }) => theme.colors.neutral150};
border-bottom: transparent;
.toolbar-controls {
padding: 1.5rem 1.5rem;
}
.is-active {
background: ${({ theme }) => theme.colors.primary200};
color: ${({ theme }) => theme.colors.neutral0};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function Toolbar({ editor }: ToolbarProps) {
return (
<>
<StyledToolbar>
<Box padding={2} className="toolbar-controls">
<Box className="toolbar-controls">
<Flex justifyContent="space-between">
<Flex style={{ flexWrap: "wrap", gap: "8px" }}>
<Box>
Expand Down

0 comments on commit 3f872c6

Please sign in to comment.