Skip to content

Commit

Permalink
Fix buttons positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbattirola committed Jan 26, 2024
1 parent 3f36f27 commit c68d992
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions web/packages/shared/components/TextEditor/TextEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ function getMode(docType) {
}

const EditorButton = styled(ButtonSecondary)`
padding: ${({theme}) => theme.space[2]}px;
padding: ${({ theme }) => theme.space[2]}px;
background-color: transparent;
`;

const ButtonSection = styled(Flex)`
position: absolute;
right: ${({theme}) => theme.space[4]}px;
top: ${({theme}) => theme.space[4]}px;
right: 0;
top: 0;
`;

export default TextEditor;
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ export default {

export const Editor = () => {
return (
<Flex height="600px" width="600px">
<Flex height="600px" width="600px" py={3} pr={3} bg="levels.deep">
<TextEditor
bg="levels.deep"
data={[
{
content,
Expand All @@ -43,8 +44,9 @@ export const Editor = () => {

export const ReadOnly = () => {
return (
<Flex height="600px" width="600px">
<Flex height="600px" width="600px" py={3} pr={3} bg="levels.deep">
<TextEditor
bg="levels.deep"
readOnly
data={[
{
Expand All @@ -59,8 +61,9 @@ export const ReadOnly = () => {

export const WithButtons = () => {
return (
<Flex height="600px" width="600px">
<Flex height="600px" width="600px" py={3} pr={3} bg="levels.deep">
<TextEditor
bg="levels.deep"
data={[
{
content,
Expand Down

0 comments on commit c68d992

Please sign in to comment.