Commit 7518da0

HPCesia <me@hpcesia.com>
2025-10-24 17:05:46
fix: links page avatar width in mobile
1 parent a15cf37
Changed files (1)
src
src/pages/links.astro
@@ -63,7 +63,7 @@ const groupHeadings = linksConfig.items.map((item) => ({
         <div class="flex flex-wrap">
           {item.groupItems.map((item) => (
             <div class="card max-md:card-side link-card">
-              <figure>
+              <figure class="shrink-0">
                 <a
                   href={item.url}
                   target="_blank"
@@ -71,10 +71,7 @@ const groupHeadings = linksConfig.items.map((item) => ({
                   class="w-full"
                   title={item.name}
                 >
-                  <ImageWrapper
-                    src={item.avatar}
-                    class="max-md:h-24 max-md:w-24 max-md:min-w-24 md:h-48"
-                  />
+                  <ImageWrapper src={item.avatar} class="max-md:h-24 max-md:w-24 md:h-48" />
                 </a>
               </figure>
               <div class="card-body from-base-300 to-base-100 bg-linear-150 px-4 py-2">