Hide group header if only one group is presented
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
||||
<i class="icon {{block.content.icon}}"></i>
|
||||
<span>{{block.label}}</span>
|
||||
</button>
|
||||
<div class="blockelement-inlineblock-editor__inner" ng-if="block.isOpen === true">
|
||||
<div class="blockelement-inlineblock-editor__inner" ng-class="{'--singleGroup':block.content.variants[0].tabs.length === 1}" ng-if="block.isOpen === true">
|
||||
<umb-element-editor-content model="block.content"></umb-element-editor-content>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+11
-4
@@ -56,13 +56,20 @@
|
||||
.blockelement-inlineblock-editor__inner {
|
||||
border-top: 1px solid @gray-8;
|
||||
background-color: @gray-12;
|
||||
|
||||
.umb-group-panel {
|
||||
|
||||
> * > * > * > .umb-group-panel {
|
||||
background-color: transparent;
|
||||
box-shadow: none;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 0;
|
||||
> .umb-group-panel__content > .umb-property {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
.umb-group-panel__header {
|
||||
display:none;
|
||||
.umb-group-panel + .umb-group-panel {
|
||||
margin-top: 20px;
|
||||
}
|
||||
&.--singleGroup > * > * > * > .umb-group-panel .umb-group-panel__header {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user