Skip to content

Commit 70fc7e7

Browse files
committed
Add a label style override for the editor and improve the dialog presentation slightly
1 parent cdd86f5 commit 70fc7e7

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

django_prose_editor/static/django_prose_editor/editor.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

django_prose_editor/static/django_prose_editor/overrides.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/editor.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,11 @@
171171
margin-right: 4px;
172172
}
173173

174+
.prose-editor-dialog p {
175+
padding: 0;
176+
margin: 0;
177+
}
178+
174179
.prose-editor-dialog label {
175180
display: block;
176181
margin-bottom: 0.5em;

src/overrides.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,13 @@
208208
pointer-events: none;
209209
}
210210

211+
.ProseMirror label {
212+
display: inline;
213+
max-width: auto;
214+
min-width: 0;
215+
width: auto;
216+
}
217+
211218
.tableWrapper {
212219
overflow-x: auto;
213220
}

0 commit comments

Comments
 (0)