Files
librenms-librenms/resources/views/components/graph-row.blade.php
Tony Murray d69674b36e Correct graph row component responsive layout for linked graphs (#13587)
* Correct graph row component responsive layout for linked graphs
Enable pass through height and legend.  Probably need more, but this is just for a start.
Switch Poller performance page

* revert accidental change

* Update Graph.php
2021-11-30 19:21:41 -06:00

20 lines
707 B
PHP

@isset($title)
<div class="tw-border-b tw-font-semibold">
{{ $title }}
</div>
@endisset
<div class="tw-flex tw-flex-wrap" @if(! $responsive) style="width: {{ $rowWidth }}px;" @endif {{ $attributes }}>
@foreach($graphs as $graph)
<x-graph
:type="$type"
:loading="$loading"
:aspect="$aspect"
:port="$port"
:device="$device"
:legend="$attributes->get('legend', 'no')"
:height="$attributes->get('height', 150)"
:vars="$graph"
{{ $attributes->class(['lg:tw-w-1/4 sm:tw-w-1/2 tw-w-full' => $responsive]) }}></x-graph>
@endforeach
</div>