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:
parent
ed2c83898c
commit
66cf9053ab
7 changed files with 7 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ features:
|
|||
@include('_partials.work-in-progress')
|
||||
|
||||
@include('_partials.class-table', [
|
||||
'scroll' => false,
|
||||
'rows' => [
|
||||
[
|
||||
'.h-1',
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ features:
|
|||
@include('_partials.work-in-progress')
|
||||
|
||||
@include('_partials.class-table', [
|
||||
'scroll' => false,
|
||||
'rows' => [
|
||||
[
|
||||
'.max-h-full',
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ features:
|
|||
@include('_partials.work-in-progress')
|
||||
|
||||
@include('_partials.class-table', [
|
||||
'scroll' => false,
|
||||
'rows' => [
|
||||
[
|
||||
'.max-w-xs',
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ features:
|
|||
@include('_partials.work-in-progress')
|
||||
|
||||
@include('_partials.class-table', [
|
||||
'scroll' => false,
|
||||
'rows' => [
|
||||
[
|
||||
'.min-h-0',
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ features:
|
|||
@include('_partials.work-in-progress')
|
||||
|
||||
@include('_partials.class-table', [
|
||||
'scroll' => false,
|
||||
'rows' => [
|
||||
[
|
||||
'.min-w-0',
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ features:
|
|||
@include('_partials.work-in-progress')
|
||||
|
||||
@include('_partials.class-table', [
|
||||
'scroll' => false,
|
||||
'rows' => [
|
||||
[
|
||||
'.w-1',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue