fix(likes): stack rows on mobile #7
+3
-3
@@ -25,9 +25,9 @@ export default function Likes() {
|
|||||||
<Link
|
<Link
|
||||||
href={d.href}
|
href={d.href}
|
||||||
aria-label={`Link to ${d.title}`}
|
aria-label={`Link to ${d.title}`}
|
||||||
className="group flex items-center gap-5 rounded-lg px-4 py-5 transition-colors hover:bg-gray-100 dark:hover:bg-gray-900"
|
className="group flex flex-col gap-4 rounded-lg px-2 py-5 transition-colors hover:bg-gray-100 dark:hover:bg-gray-900 sm:flex-row sm:items-center sm:gap-5 sm:px-4"
|
||||||
>
|
>
|
||||||
<span className="h-[135px] w-[240px] flex-none overflow-hidden rounded-lg border border-gray-200 bg-gray-200 dark:border-gray-700 dark:bg-gray-800">
|
<span className="aspect-video w-full flex-none overflow-hidden rounded-lg border border-gray-200 bg-gray-200 dark:border-gray-700 dark:bg-gray-800 sm:aspect-auto sm:h-[135px] sm:w-[240px]">
|
||||||
<Image
|
<Image
|
||||||
src={d.imgSrc}
|
src={d.imgSrc}
|
||||||
alt={d.title}
|
alt={d.title}
|
||||||
@@ -50,7 +50,7 @@ export default function Likes() {
|
|||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
<svg
|
<svg
|
||||||
className="h-5 w-5 flex-none text-primary-500 opacity-60 transition group-hover:opacity-100"
|
className="hidden h-5 w-5 flex-none text-primary-500 opacity-60 transition group-hover:opacity-100 sm:block"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
|
|||||||
Reference in new issue
Block a user