Skip to content

Commit

Permalink
ISSUE #381 - fixed react quill width (#382)
Browse files Browse the repository at this point in the history
* removed  white-space: nowrap !important;

* Update DescriptionEditor.tsx
  • Loading branch information
MeerUzairWasHere authored Sep 21, 2024
1 parent 8d91426 commit e501b07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@

/* Ensure long content does not wrap within the editor */
.job-description-editor .ql-editor {
white-space: nowrap !important;
overflow-x: hidden !important; /* Allow horizontal scrolling */
overflow-y: hidden !important; /* Hide vertical overflow */
}
Expand Down Expand Up @@ -375,4 +374,4 @@

html {
scroll-behavior: smooth;
}
}
1 change: 1 addition & 0 deletions src/components/DescriptionEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const DescriptionEditor: React.FC<DescriptionEditorProps> = ({
modules={modules}
formats={formats}
value={description}
style={{ width: "100%" }}
onChange={handleChange}
placeholder={placeholder}
className="text-white bg-gray-800 overflow-hidden job-description-editor"
Expand Down

0 comments on commit e501b07

Please sign in to comment.