Mobile tweaks
This commit is contained in:
parent
5900220cab
commit
9f2c084fa2
|
|
@ -6,17 +6,17 @@
|
||||||
@php
|
@php
|
||||||
$colspan_classes = [
|
$colspan_classes = [
|
||||||
'1' => '',
|
'1' => '',
|
||||||
'2' => 'sm:col-span-2',
|
'2' => 'col-span-2',
|
||||||
'3' => 'sm:col-span-3',
|
'3' => 'col-span-3',
|
||||||
'4' => 'sm:col-span-4',
|
'4' => 'col-span-4',
|
||||||
'5' => 'sm:col-span-5',
|
'5' => 'col-span-5',
|
||||||
'6' => 'sm:col-span-6',
|
'6' => 'col-span-6',
|
||||||
'7' => 'sm:col-span-7',
|
'7' => 'col-span-7',
|
||||||
'8' => 'sm:col-span-8',
|
'8' => 'col-span-8',
|
||||||
'9' => 'sm:col-span-9',
|
'9' => 'col-span-9',
|
||||||
'10' => 'sm:col-span-10',
|
'10' => 'col-span-10',
|
||||||
'11' => 'sm:col-span-11',
|
'11' => 'col-span-11',
|
||||||
'12' => 'sm:col-span-12'
|
'12' => 'col-span-12'
|
||||||
];
|
];
|
||||||
$label_attribs = [
|
$label_attribs = [
|
||||||
'class' => 'block text-sm font-medium leading-6 text-gray-900',
|
'class' => 'block text-sm font-medium leading-6 text-gray-900',
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
@endif
|
@endif
|
||||||
<div class="flow-root">
|
<div class="flow-root">
|
||||||
<div class="-mx-4 -my-2 sm:-mx-6 lg:-mx-8 overflow-x-auto">
|
<div class="-mx-4 -my-2 sm:-mx-6 lg:-mx-8 overflow-x-auto">
|
||||||
<div class='inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8' @if($sortable)x-data="data()"@endif>
|
<div class='inline-block min-w-full py-2 align-middle px-3 sm:px-6 lg:px-8' @if($sortable)x-data="data()"@endif>
|
||||||
<table {{ $attributes->merge(['class' => 'min-w-full divide-y divide-gray-300']) }}>
|
<table {{ $attributes->merge(['class' => 'min-w-full divide-y divide-gray-300']) }}>
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<x-table.th first>Name</x-table.th>
|
<x-table.th first>Name</x-table.th>
|
||||||
<x-table.th>Grade</x-table.th>
|
<x-table.th class="hidden md:table-cell">Grade</x-table.th>
|
||||||
<x-table.th>Audition</x-table.th>
|
<x-table.th>Audition</x-table.th>
|
||||||
@if(auditionSetting('advanceTo'))
|
@if(auditionSetting('advanceTo'))
|
||||||
<x-table.th>{{ auditionSetting('auditionAbbreviation') }}</x-table.th>
|
<x-table.th>{{ auditionSetting('auditionAbbreviation') }}</x-table.th>
|
||||||
|
|
@ -75,7 +75,7 @@
|
||||||
@foreach($entries as $entry)
|
@foreach($entries as $entry)
|
||||||
<tr>
|
<tr>
|
||||||
<x-table.td first>{{ $entry->student->full_name(true) }}</x-table.td>
|
<x-table.td first>{{ $entry->student->full_name(true) }}</x-table.td>
|
||||||
<x-table.td>{{ $entry->student->grade }}</x-table.td>
|
<x-table.td class="hidden md:table-cell">{{ $entry->student->grade }}</x-table.td>
|
||||||
<x-table.td>{{ $entry->audition->name }}</x-table.td>
|
<x-table.td>{{ $entry->audition->name }}</x-table.td>
|
||||||
|
|
||||||
@if(auditionSetting('advanceTo'))
|
@if(auditionSetting('advanceTo'))
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,10 @@
|
||||||
<tr>
|
<tr>
|
||||||
<x-table.th :sortable="false"><a href="{{ url()->current() }}">Entry</a></x-table.th>
|
<x-table.th :sortable="false"><a href="{{ url()->current() }}">Entry</a></x-table.th>
|
||||||
@foreach($subscores as $subscore)
|
@foreach($subscores as $subscore)
|
||||||
<x-table.th :sortable="false">{{ $subscore->name }}</x-table.th>
|
<x-table.th :sortable="false" class="hidden md:table-cell">{{ $subscore->name }}</x-table.th>
|
||||||
@endforeach
|
@endforeach
|
||||||
@if(auditionSetting('advanceTo') and $audition->for_advancement)
|
@if(auditionSetting('advanceTo') and $audition->for_advancement)
|
||||||
<x-table.th>{{ auditionSetting('advanceTo') }}</x-table.th>
|
<x-table.th class="hidden md:table-cell">{{ auditionSetting('advanceTo') }}</x-table.th>
|
||||||
@endif
|
@endif
|
||||||
<x-table.th :sortable="true">Timestamp</x-table.th>
|
<x-table.th :sortable="true">Timestamp</x-table.th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -34,14 +34,14 @@
|
||||||
@endif
|
@endif
|
||||||
</x-table.td>
|
</x-table.td>
|
||||||
@foreach($subscores as $subscore)
|
@foreach($subscores as $subscore)
|
||||||
<x-table.td>
|
<x-table.td class="hidden md:table-cell">
|
||||||
@php
|
@php
|
||||||
if( $x = Auth::user()->scoresForEntry($entry->id)) echo $x[$subscore->id]['score'];
|
if( $x = Auth::user()->scoresForEntry($entry->id)) echo $x[$subscore->id]['score'];
|
||||||
@endphp
|
@endphp
|
||||||
</x-table.td>
|
</x-table.td>
|
||||||
@endforeach
|
@endforeach
|
||||||
@if(auditionSetting('advanceTo') and $audition->for_advancement)
|
@if(auditionSetting('advanceTo') and $audition->for_advancement)
|
||||||
<x-table.td>
|
<x-table.td class="hidden md:table-cell">
|
||||||
@if($votes->contains('entry_id', $entry->id))
|
@if($votes->contains('entry_id', $entry->id))
|
||||||
@php
|
@php
|
||||||
$vote = $votes->where('entry_id',$entry->id)->first();
|
$vote = $votes->where('entry_id',$entry->id)->first();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue