Commit 4ed19288 authored by webchick's avatar webchick

Issue #2899395 by timmillwood, Wim Leers, jojototh, xjm, Bojhan, DyanneNova:...

Issue #2899395 by timmillwood, Wim Leers, jojototh, xjm, Bojhan, DyanneNova: Content Moderation form in displayed entity looks broken
parent 87c8af27
......@@ -8,12 +8,35 @@ ul.entity-moderation-form {
display: flex;
-webkit-flex-wrap: wrap; /* Safari */
flex-wrap: wrap;
-webkit-justify-content: space-around; /* Safari */
justify-content: space-around;
-webkit-align-items: flex-end; /* Safari */
align-items: flex-end;
-webkit-align-items: flex-start; /* Safari */
align-items: flex-start;
}
ul.entity-moderation-form li {
margin-right: 2em;
display: table;
}
ul.entity-moderation-form li:last-child {
-webkit-align-self: flex-end; /* Safari */
align-self: flex-end;
margin-right: 0;
}
ul.entity-moderation-form .form-item {
margin-top: 1em;
margin-bottom: 1em;
}
ul.entity-moderation-form .form-item label {
padding-bottom: 0.25em;
display: table;
}
ul.entity-moderation-form input[type=submit] {
margin-bottom: 1.2em;
}
ul.entity-moderation-form .btn {
margin-bottom: 1.1em;
}
......@@ -3,5 +3,8 @@
* Theme styles for the content_moderation module.
*/
ul.entity-moderation-form {
border-bottom: 1px solid gray;
border: 1px dashed #bbb;
margin: 2em 0em;
background: #fff;
padding-left: 1em;
}
......@@ -253,7 +253,6 @@ public function entityView(array &$build, EntityInterface $entity, EntityViewDis
$component = $display->getComponent('content_moderation_control');
if ($component) {
$build['content_moderation_control'] = $this->formBuilder->getForm(EntityModerationForm::class, $entity);
$build['content_moderation_control']['#weight'] = $component['weight'];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment