<template>
- <div class="flex relative items-start">
+ <div class="flex relative items-start sm:block">
<!-- Filters column -->
- <div class="products-filters-wrapper sticky top-0 mr-1v pt-4 whitespace-no-wrap">
+ <div class="products-filters-wrapper sticky sm:static top-0 mr-1v sm:mr-0 pt-4 whitespace-no-wrap">
<!-- Filters panel -->
<div class="bg-white p-4">
<hr class="h-px bg-grey-250 my-4" v-if="index !== 0" />
- <h3 class="text-base mb-2">{{ filter.label }}</h3>
+ <h3 class="text-base mb-2 whitespace-normal">{{ filter.label }}</h3>
<ul v-if="filter.type === 'list'">
<li v-for="(option, option_index) in filter.options" :key="option_index" class="flex justify-between py-1 text-sm">
<div class="products-grid flex-grow">
<!-- Grid summary header -->
- <div class="products-grid-summary sticky top-0 z-10 bg-grey-100 pt-4 pb-4 flex justify-between md:block">
+ <div class="products-grid-summary sticky sm:static top-0 z-10 bg-grey-100 pt-4 pb-4 flex justify-between sm:block">
<!-- Active filters -->
<div class="products-grid-active-filters flex-grow text-sm">
// on this min-width setting...
&.grid-cols-auto
- grid-template-columns: repeat(auto-fill, minmax(270px, 1fr))
+ grid-template-columns: repeat(auto-fill, minmax(275px, 1fr))
+
+ // On the smaller screens, 270px min-width is sometimes too wide
+ // when including the content padding so reduce it when getting close.
+ +below(960px)
+ grid-template-columns: repeat(auto-fill, minmax(225px, 1fr))
.product-highlights
width: 70%
height: 70%
top: 15%
- left: 15%
\ No newline at end of file
+ left: 15%
@endif
{{-- Product Grid --}}
- <grid cols="auto" class="products-grid mt-6">
+ <grid cols="auto" class="products-grid mt-6 sm:mt-2">
@foreach($products as $id => $product)
@include('partials.product-link', ['id' => $id, 'product' => $product])
@endforeach