Skip to content

Commit

Permalink
feat: text placeholder limits
Browse files Browse the repository at this point in the history
  • Loading branch information
okorie2 committed Sep 28, 2023
1 parent 423903c commit 286e427
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/app/components/Dialogs/CookieDialog/common/message.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import React from "react";
import { Link } from "react-router-dom";
import Box from "@material-ui/core/Box";
import styled from "styled-components/macro";
import Typography from "@material-ui/core/Typography";
import ContainedButton from "app/components/Buttons/ContainedButton";

const MessageContainer = styled((props) => <Box {...props} />)`
align-items: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const RichEditor = (props: {
${!props.fullWidth && "max-width: 800px !important;"}
h1,
h2 {
h2 {
font-family: "GothamNarrow-Bold", "Helvetica Neue", sans-serif;
* {
font-family: "GothamNarrow-Bold", "Helvetica Neue", sans-serif;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,8 @@ const Box = (props: {
onResizeStop={onResizeStop}
size={{ width: width, height: `${props.height}px` }}
maxWidth={!viewOnlyMode ? containerWidth : undefined}
minWidth={78}
minHeight={textResizableRef.current?.clientHeight}
enable={{
right: !viewOnlyMode,
bottom: !viewOnlyMode,
Expand Down Expand Up @@ -626,6 +628,7 @@ const Box = (props: {
<DeleteIcon />
</IconButton>
)}

<RichEditor
fullWidth
editMode={!viewOnlyMode}
Expand Down

0 comments on commit 286e427

Please sign in to comment.