I am making my first laravel project using bootstrap (https://getbootstrap.com/) and I bumped into a problem with mobile devices.
I am using a bootstrap4 basic table, (not using responsive property is not the problem) and using small property does not help either.
When the website is loaded, it shows as in picture 1. Now to see whole table, I need to slide left, as in picture 2 or zoom out as in picture 3.
Can I force my site to zoom out as shown in pic 3 when loaded? Or make the table fit into the page like in picture 1, since my NAV wont scale?
I need whole table to be visible right away, even if not readable and the user would zoom it himself.
I tried wrapping only the table in <div class="container"></div> and in .container-fluid too
but neither would help.
Can anyone help me, please?
Thank you.
code:
<div class="container">
<h1>List</h1>
<div class="row">
<div class="dropdown">
<a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ request('aec') ? $aecs->find(request('aec'))->name : '' }}
</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
<a class="dropdown-item" href="{{ route('ae.index') }}">Všetky</a>
@foreach ($aecs as $aec)
<a class="dropdown-item" href="{{ route('ae.index', ['aec' => $aec]) }}">{{ $aec->name }}</a>
@endforeach
</div>
</div>
</div>
</div>
<br>
<div class="container">
<table class="table table-hover">
<thead>
<tr>
<th scope="col" class="text-center align-middle">ID</th>
<th scope="col" class="text-center align-middle">Typ</th>
<th scope="col" class="text-center align-middle">Názov</th>
<th scope="col" class="text-center align-middle">Skratka</th>
<th scope="col" class="text-center align-middle">Pseudo ID</th>
<th scope="col" class="text-center align-middle">Fotografia</th>
</tr>
</thead>
<tbody>
@forelse ($aes as $ae)
<tr>
<th scope="row" class="text-center align-middle">
<a href="{{ $ae->path() }}">
{{ $ae->AECategory->id . "." . $ae->id }}
</a>
</th>
<td class="text-center align-middle">{{ $ae->AECategory->name }}</td>
<td class="text-center align-middle"><a href="{{ $ae->path() }}">{{ $ae->name }}</a></td>
<td class="text-center align-middle">{{ $ae ->nickname }}</td>
<td class="text-center align-middle">{{ $ae->pseudo_id }}</td>
<td class="text-center align-middle">
<div class="gallery">
<a data-fancybox="gallery"
href="{{ $ae->image ? asset($ae->image->path) : '' }}">
<img
src="{{ $ae->image ? asset($ae->image->path025) : '' }}"
class="img-fluid img"
width="250"
height="250"
alt=""
>
</a>
</div>
</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
