Mobile tweaks
This commit is contained in:
parent
5900220cab
commit
9f2c084fa2
|
|
@ -6,17 +6,17 @@
|
|||
@php
|
||||
$colspan_classes = [
|
||||
'1' => '',
|
||||
'2' => 'sm:col-span-2',
|
||||
'3' => 'sm:col-span-3',
|
||||
'4' => 'sm:col-span-4',
|
||||
'5' => 'sm:col-span-5',
|
||||
'6' => 'sm:col-span-6',
|
||||
'7' => 'sm:col-span-7',
|
||||
'8' => 'sm:col-span-8',
|
||||
'9' => 'sm:col-span-9',
|
||||
'10' => 'sm:col-span-10',
|
||||
'11' => 'sm:col-span-11',
|
||||
'12' => 'sm:col-span-12'
|
||||
'2' => 'col-span-2',
|
||||
'3' => 'col-span-3',
|
||||
'4' => 'col-span-4',
|
||||
'5' => 'col-span-5',
|
||||
'6' => 'col-span-6',
|
||||
'7' => 'col-span-7',
|
||||
'8' => 'col-span-8',
|
||||
'9' => 'col-span-9',
|
||||
'10' => 'col-span-10',
|
||||
'11' => 'col-span-11',
|
||||
'12' => 'col-span-12'
|
||||
];
|
||||
$label_attribs = [
|
||||
'class' => 'block text-sm font-medium leading-6 text-gray-900',
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
@endif
|
||||
<div class="flow-root">
|
||||
<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']) }}>
|
||||
{{ $slot }}
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<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>
|
||||
@if(auditionSetting('advanceTo'))
|
||||
<x-table.th>{{ auditionSetting('auditionAbbreviation') }}</x-table.th>
|
||||
|
|
@ -75,7 +75,7 @@
|
|||
@foreach($entries as $entry)
|
||||
<tr>
|
||||
<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>
|
||||
|
||||
@if(auditionSetting('advanceTo'))
|
||||
|
|
|
|||
|
|
@ -13,10 +13,10 @@
|
|||
<tr>
|
||||
<x-table.th :sortable="false"><a href="{{ url()->current() }}">Entry</a></x-table.th>
|
||||
@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
|
||||
@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
|
||||
<x-table.th :sortable="true">Timestamp</x-table.th>
|
||||
</tr>
|
||||
|
|
@ -34,14 +34,14 @@
|
|||
@endif
|
||||
</x-table.td>
|
||||
@foreach($subscores as $subscore)
|
||||
<x-table.td>
|
||||
<x-table.td class="hidden md:table-cell">
|
||||
@php
|
||||
if( $x = Auth::user()->scoresForEntry($entry->id)) echo $x[$subscore->id]['score'];
|
||||
@endphp
|
||||
</x-table.td>
|
||||
@endforeach
|
||||
@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))
|
||||
@php
|
||||
$vote = $votes->where('entry_id',$entry->id)->first();
|
||||
|
|
|
|||
Loading…
Reference in New Issue