While using Bootstrap 4 and incorporating Stream UI Kit for the user interface within my application, I've encountered an issue where the column size doesn't display correctly on smaller screens!
For example: https://i.sstatic.net/mUekg.png
On mobile browsers, it should ideally display one column per line! You can view the demo to confirm this.
<!-- Campaigns Grid -->
<section class="pt-11 pb-6 bg-light">
<div class="container">
<div class="d-flex justify-content-between align-items-center mb-5">
<h2 class="h3 text-center">{{ trans('user.offers') }}</h2>
<a href="{{ url('/campaigns?type=offer') }}" class="btn btn-outline-primary">{{ trans('user.all') }}</a>
</div>
<div class="row">
@foreach($offers as $demand)
<div class="col-md-4 mb-5">
<div class="card h-100 border-0 shadow">
<a href="{{ url('/campaign/'.$demand->id) }}" class="d-block bg-gradient rounded-top">
<img class="card-img-top hover-fade-out" src="{{ url('upload/campaign/'. $demand->cover .'/') }}" alt="{{ $demand->title }}" height="244">
</a>
<div class="card-body">
<a href="{{ url('/campaign/'.$demand->id) }}">
<h3>{{ $demand->title }}</h3>
</a>
<p>
{!! str_limit(strip_tags($demand->content), 128) !!}
</p>
</div>
<div class="card-footer d-flex">
@foreach($demand->categories as $category)
@if(App::isLocale('ar')) <a href="{{ url('/category/'.$category->id) }} " class="badge badge-pill badge-secondary mr-1" >{{ $category->title_ar }} </a>
@elseif(App::isLocale('fr')) <a href="{{ url('/category/'.$category->id) }}" class="badge badge-pill badge-secondary mr-1">{{ $category->title }}</a>
@else <a href="{{ url('/category/'.$category->id) }}" class="badge badge-pill badge-secondary mr-1">{{ $category->title_en }}</a>
@endif
@endforeach
</div>
</div>
</div>
@endforeach
</div>
</div>
</section>
<!-- End Campaigns Grid -->