Skip to content

Commit

Permalink
fix: When not inline-editing the dialog for text-enabled plugins is t…
Browse files Browse the repository at this point in the history
…oo small, and not resizable.
  • Loading branch information
fsbraun committed Aug 27, 2024
1 parent 091239e commit 2f940e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions djangocms_text/cms_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class IconButton(Button):
class InlineEditingToolbar(CMSToolbar):
@property
def media(self):
if self.toolbar.edit_mode_active and self.inline_editing:
if self.toolbar.edit_mode_active:
return forms.Media(
css={
**rte_config.css,
Expand All @@ -33,7 +33,7 @@ def media(self):
js=(
static("djangocms_text/bundles/bundle.editor.min.js"),
*(static(js) for js in rte_config.js),
),
) if self.inline_editing else (),
)
return forms.Media()

Expand Down
2 changes: 1 addition & 1 deletion private/css/cms.dialog.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

dialog.cms-dialog {
#cms-top dialog.cms-dialog {
padding: 0;
resize: both;
top: 50%;
Expand Down

0 comments on commit 2f940e0

Please sign in to comment.