Add option to class table partial to disallow scrolling

Lets us easily say "show all" for pages that currently have nothing but
a class table
This commit is contained in:
Adam Wathan 2017-11-24 19:14:03 -05:00
parent ed2c83898c
commit 66cf9053ab
7 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,5 @@
<div class="border-t border-b border-grey-light">
<div class="{{ count($rows) > 10 ? 'max-h-sm' : '' }} overflow-y-scroll">
<div class="{{ (count($rows) <= 10 || (isset($scroll) && $scroll === false)) ? '' : 'max-h-sm' }} overflow-y-scroll">
<table class="w-full text-left table-collapse">
<thead>
<tr>

View file

@ -12,6 +12,7 @@ features:
@include('_partials.work-in-progress')
@include('_partials.class-table', [
'scroll' => false,
'rows' => [
[
'.h-1',

View file

@ -12,6 +12,7 @@ features:
@include('_partials.work-in-progress')
@include('_partials.class-table', [
'scroll' => false,
'rows' => [
[
'.max-h-full',

View file

@ -12,6 +12,7 @@ features:
@include('_partials.work-in-progress')
@include('_partials.class-table', [
'scroll' => false,
'rows' => [
[
'.max-w-xs',

View file

@ -12,6 +12,7 @@ features:
@include('_partials.work-in-progress')
@include('_partials.class-table', [
'scroll' => false,
'rows' => [
[
'.min-h-0',

View file

@ -12,6 +12,7 @@ features:
@include('_partials.work-in-progress')
@include('_partials.class-table', [
'scroll' => false,
'rows' => [
[
'.min-w-0',

View file

@ -12,6 +12,7 @@ features:
@include('_partials.work-in-progress')
@include('_partials.class-table', [
'scroll' => false,
'rows' => [
[
'.w-1',