Updated padding and grip gap on mobile

This commit is contained in:
Corey 2020-08-01 20:07:27 +08:00
parent 28afd3a8ee
commit c30343d7d6

View file

@ -230,7 +230,7 @@
</div> </div>
<div <div
class="p-2 lg:p-8 grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 xl:grid-cols-8 gap-4" class="p-2 lg:p-8 grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 xl:grid-cols-8 gap-2 md:gap-4"
> >
<template x-for="(item, index) in filteredIcons" :key="index"> <template x-for="(item, index) in filteredIcons" :key="index">
<a <a
@ -242,7 +242,7 @@
item.icon_path + item.icon_path +
`.svg`" `.svg`"
x-bind:download="downloadType === 'download-svg' && item.icon_name" x-bind:download="downloadType === 'download-svg' && item.icon_name"
class="flex flex-col relative items-center group justify-center text-gray-700 rounded shadow hover:shadow-xl bg-white cursor-pointer transition duration-150 ease-in-out h-32 md:h-40" class="flex flex-col relative items-center group justify-center text-gray-700 rounded shadow hover:shadow-xl bg-white cursor-pointer transition duration-150 ease-in-out p-2 h-32 md:h-40"
@click="handleClick(item, downloadType, $event, $dispatch)" @click="handleClick(item, downloadType, $event, $dispatch)"
> >
<div> <div>
@ -278,7 +278,7 @@
loading="lazy" loading="lazy"
/> />
<p <p
class="text-xs leading-none text-gray-600 text-center mt-4 md:mt-8" class="text-xs leading-none text-gray-600 text-center mt-4 md:mt-8 tracking-tight"
x-text="item.icon_name" x-text="item.icon_name"
></p> ></p>
<span class="hidden" x-text="item.icon_keywords"></span> <span class="hidden" x-text="item.icon_keywords"></span>