fix(likes): stack rows on mobile
The 240px thumbnail plus text overflowed below the sm breakpoint. Stack the image above the text on small screens and hide the arrow there.
This commit is contained in:
1 parent
09219c1422
commit
5de7b04e6d
1 file changed
+3
-3
+3
-3
@@ -25,9 +25,9 @@ export default function Likes() {
|
||||
<Link
|
||||
href={d.href}
|
||||
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
|
||||
src={d.imgSrc}
|
||||
alt={d.title}
|
||||
@@ -50,7 +50,7 @@ export default function Likes() {
|
||||
)}
|
||||
</span>
|
||||
<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"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
|
||||
Reference in new issue
Block a user