diff --git a/layout_paragraphs.module b/layout_paragraphs.module index 7c355cb7971c42a80ecdcaea4e5efa79eae0266b..dc79ebbe787f86999594ca93a0e7242219d153c5 100644 --- a/layout_paragraphs.module +++ b/layout_paragraphs.module @@ -247,6 +247,7 @@ function layout_paragraphs_preprocess_layout_paragraphs_builder_controls(&$varia 'modal' => TRUE, 'target' => Dialog::dialogId($layout), 'dialogClass' => 'lpb-dialog', + 'width' => 'auto', ]), 'title' => t('Delete'), ], diff --git a/src/Form/DeleteComponentForm.php b/src/Form/DeleteComponentForm.php index bd96cacaa3c208e1644b60741cac18781d8fc53d..104d4af2b00520b664ed4813daf6de391bd951c7 100644 --- a/src/Form/DeleteComponentForm.php +++ b/src/Form/DeleteComponentForm.php @@ -65,9 +65,9 @@ class DeleteComponentForm extends FormBase { $this->componentUuid = $component_uuid; $component = $this->layoutParagraphsLayout->getComponentByUuid($this->componentUuid); $type = $component->getEntity()->getParagraphType()->label(); - $form['#title'] = $this->t('Delete @type', ['@type' => $type]); + $form['#title'] = $this->t('Delete component', ['@type' => $type]); $form['confirm'] = [ - '#markup' => $this->t('Really delete this @type? There is no undo.', ['@type' => $type]), + '#markup' => $this->t('Really delete this "@type" component? There is no undo.', ['@type' => $type]), ]; $form['actions'] = [ '#type' => 'actions',