builder block: add icon in blocks

This commit is contained in:
Simon Vieille 2024-05-26 22:14:33 +02:00
parent 4054f6ccff
commit bc148f0b6b
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 14 additions and 0 deletions

View file

@ -787,6 +787,13 @@ label.required::after {
$block-colors: #E183F5 #E3F7C6 #82DDF5 #F5BA82 #A088A6;
$block-colors-length: length($block-colors);
.block .block-icon {
> * {
display: inline-block;
margin-right: 3px;
}
}
@for $i from 1 through 100 {
$block-color-index: ($block-colors-length + $i) % $block-colors-length + 1;

View file

@ -11,6 +11,13 @@
class="block-header-item block-label"
:title="item.widget"
>
<span
class="block-icon"
v-if="widget.icon"
v-html="widget.icon"
>
</span>
{{ widget.label }}
</div>