Skip to content

Commit 66cf905

Browse files
committed
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
1 parent ed2c838 commit 66cf905

File tree

7 files changed

+7
-1
lines changed

7 files changed

+7
-1
lines changed

docs/source/_partials/class-table.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="border-t border-b border-grey-light">
2-
<div class="{{ count($rows) > 10 ? 'max-h-sm' : '' }} overflow-y-scroll">
2+
<div class="{{ (count($rows) <= 10 || (isset($scroll) && $scroll === false)) ? '' : 'max-h-sm' }} overflow-y-scroll">
33
<table class="w-full text-left table-collapse">
44
<thead>
55
<tr>

docs/source/docs/height.blade.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ features:
1212
@include('_partials.work-in-progress')
1313

1414
@include('_partials.class-table', [
15+
'scroll' => false,
1516
'rows' => [
1617
[
1718
'.h-1',

docs/source/docs/max-height.blade.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ features:
1212
@include('_partials.work-in-progress')
1313

1414
@include('_partials.class-table', [
15+
'scroll' => false,
1516
'rows' => [
1617
[
1718
'.max-h-full',

docs/source/docs/max-width.blade.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ features:
1212
@include('_partials.work-in-progress')
1313

1414
@include('_partials.class-table', [
15+
'scroll' => false,
1516
'rows' => [
1617
[
1718
'.max-w-xs',

docs/source/docs/min-height.blade.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ features:
1212
@include('_partials.work-in-progress')
1313

1414
@include('_partials.class-table', [
15+
'scroll' => false,
1516
'rows' => [
1617
[
1718
'.min-h-0',

docs/source/docs/min-width.blade.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ features:
1212
@include('_partials.work-in-progress')
1313

1414
@include('_partials.class-table', [
15+
'scroll' => false,
1516
'rows' => [
1617
[
1718
'.min-w-0',

docs/source/docs/width.blade.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ features:
1212
@include('_partials.work-in-progress')
1313

1414
@include('_partials.class-table', [
15+
'scroll' => false,
1516
'rows' => [
1617
[
1718
'.w-1',

0 commit comments

Comments
 (0)