diff --git a/package-lock.json b/package-lock.json index 51a0a97..4b6e19f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "@astrojs/rss": "^4.0.11", "@astrojs/tailwind": "^5.1.0", "@astrojs/vercel": "^8.0.2", + "@floating-ui/dom": "^1.6.3", "astro": "^5.1.6", "tailwindcss": "^3.4.1" } @@ -939,6 +940,28 @@ "node": ">=12" } }, + "node_modules/@floating-ui/core": { + "version": "1.6.9", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.9.tgz", + "integrity": "sha512-uMXCuQ3BItDUbAMhIXw7UPXRfAlOAvZzdK9BWpE60MCn+Svt3aLn9jsPTi/WNGlRUu2uI0v5S7JiIUsbsvh3fw==", + "dependencies": { + "@floating-ui/utils": "^0.2.9" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.6.13", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.13.tgz", + "integrity": "sha512-umqzocjDgNRGTuO7Q8CU32dkHkECqI8ZdMZ5Swb6QAM0t5rnlrN3lGo1hdpscRd3WS8T6DKYK4ephgIH9iRh3w==", + "dependencies": { + "@floating-ui/core": "^1.6.0", + "@floating-ui/utils": "^0.2.9" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.9.tgz", + "integrity": "sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==" + }, "node_modules/@img/sharp-darwin-arm64": { "version": "0.33.5", "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.5.tgz", diff --git a/package.json b/package.json index 5fb8f93..c185ada 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@astrojs/rss": "^4.0.11", "@astrojs/tailwind": "^5.1.0", "@astrojs/vercel": "^8.0.2", + "@floating-ui/dom": "^1.6.3", "astro": "^5.1.6", "tailwindcss": "^3.4.1" } diff --git a/src/components/ComicCard.astro b/src/components/ComicCard.astro index 1c98086..121b49f 100644 --- a/src/components/ComicCard.astro +++ b/src/components/ComicCard.astro @@ -39,8 +39,10 @@ const coverUrl = comic.md_comics.md_covers[0]
-
-

{comic.md_comics.title}

+
+

+ {comic.md_comics.title} +

@@ -61,7 +63,7 @@ const coverUrl = comic.md_comics.md_covers[0] type="button" class="expand-tags-btn bg-hover text-primary/80 px-3 py-1 rounded-full text-xs font-medium hover:bg-hover/80 cursor-pointer transition-colors" aria-expanded="false" - aria-controls={`tags-${comic.id}`} + data-comic-id={comic.id} > +{genreNames.length - 3} more @@ -71,7 +73,8 @@ const coverUrl = comic.md_comics.md_covers[0] {genreNames.length > 3 && (