Skip to content

Commit

Permalink
#3896: Make modals containing rich text editor wider
Browse files Browse the repository at this point in the history
  • Loading branch information
anilsonmez-simsoft authored and gjvoosten committed Oct 27, 2021
1 parent e0e5af8 commit 8021926
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion client/src/components/assessments/AssessmentModal.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import API from "api"
import {
CustomFieldsContainer,
customFieldsJSONString
customFieldsJSONString,
SPECIAL_WIDGET_TYPES
} from "components/CustomFields"
import Messages from "components/Messages"
import Model, {
Expand Down Expand Up @@ -30,6 +31,9 @@ const AssessmentModal = ({
onCancel
}) => {
const [assessmentError, setAssessmentError] = useState(null)
const hasRichTextEditor = Object.values(assessmentConfig).find(
question => question.widget === SPECIAL_WIDGET_TYPES.RICH_TEXT_EDITOR
)
const edit = !!note.uuid
const initialValues = useMemo(
() =>
Expand All @@ -44,6 +48,7 @@ const AssessmentModal = ({
centered
show={showModal}
onHide={closeModal}
dialogClassName={hasRichTextEditor && "rich-text-modal"}
style={{ zIndex: "1250" }}
>
<Formik
Expand Down
3 changes: 2 additions & 1 deletion client/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,8 @@ header.searchPagination {
}

.rich-text-modal {
min-width: 650px;
width: 650px;
max-width: 100%;
}

@page {
Expand Down

0 comments on commit 8021926

Please sign in to comment.