mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* 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
20 lines
707 B
PHP
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>
|