diff --git a/assets/sass/_theme/blocks/datatable.sass b/assets/sass/_theme/blocks/datatable.sass index f4f4270746f9fd04dbdafbe005899c8b30951513..e3eb5c243aa22ac9c4cc5aa6daa7c52244ca8cb2 100644 --- a/assets/sass/_theme/blocks/datatable.sass +++ b/assets/sass/_theme/blocks/datatable.sass @@ -3,3 +3,7 @@ white-space: nowrap caption color: $color-text-alt + @include media-breakpoint-up(desktop) + .top + p + width: col(8) diff --git a/layouts/partials/blocks/templates/datatable.html b/layouts/partials/blocks/templates/datatable.html index c8c19a3716ef3e98dd5995f99bdd9fff97ca0e7c..c4a85c6497f286257253713e9a7a0260b4fc9b16 100644 --- a/layouts/partials/blocks/templates/datatable.html +++ b/layouts/partials/blocks/templates/datatable.html @@ -11,6 +11,9 @@ {{ else }} <div class="top"> <h2>{{ partial "PrepareHTML" $title }}</h2> + {{- if .description }} + <p>{{ partial "PrepareHTML" .description }}</p> + {{ end }} </div> {{ end -}} <div class="table-responsive"> @@ -40,4 +43,4 @@ </div> </div> </section> -{{- end -}} +{{- end -}} \ No newline at end of file