Skip to content
Snippets Groups Projects
Commit 178bd08d authored by Ron Lucke's avatar Ron Lucke Committed by Jan-Hendrik Willms
Browse files

fix #625

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