Skip to content
Snippets Groups Projects
Commit 84892f66 authored by Ron Lucke's avatar Ron Lucke Committed by Till Glöggler
Browse files

fix #625

parent fe450fd4
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ class TableOfContents extends BlockType
public function initialPayload(): array
{
return [
'style' => '',
'style' => 'list',
'title' => '',
];
}
......
......@@ -4059,22 +4059,15 @@ toc block
}
.cw-block-table-of-contents-tiles.cw-tiles {
&.cw-tiles-space-between {
justify-content: space-between;
}
.tile {
margin: 0 0 5px 0;
&.cw-tile-margin {
margin: 0 5px 5px 0;
}
margin: 0 3px 5px 0;
}
}
.cw-container-colspan-half {
.cw-block-table-of-contents-tiles.cw-tiles {
justify-content: space-between;
.tile {
margin: 0 0 5px 0;
width: 267px;
}
}
......
......@@ -26,13 +26,12 @@
<ul
v-if="currentStyle === 'tiles'"
class="cw-block-table-of-contents-tiles cw-tiles"
:class="[childElements.length > 3 ? 'cw-tiles-space-between' : '']"
>
<li
v-for="child in childElements"
:key="child.id"
class="tile"
:class="[child.attributes.payload.color, childElements.length > 3 ? '': 'cw-tile-margin']"
:class="[child.attributes.payload.color]"
>
<router-link :to="'/structural_element/' + child.id" :title="child.attributes.title">
<div
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment