From cb2325ac468589a1570865f8bff9246910a2c56e Mon Sep 17 00:00:00 2001 From: Ray C Date: Fri, 10 May 2024 17:53:13 +0800 Subject: [PATCH] Update cart icon style --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 2c7480a..5ae12bd 100644 --- a/index.html +++ b/index.html @@ -174,7 +174,7 @@ } }" class="p-2 relative after:absolute after:rounded-full after:flex after:justify-center after:items-center after:text-xs after:text-gray-100 after:bg-red-600" - :class="`after:content-['${num}'] after:size-${num >= 100 ? 6 : num >= 10 ? 5 : 4} ${num >= 100 ? 'after:-right-1.5 after:-top-1.5' : num >= 10 ? 'after:-right-0.5 after:-top-0.5' : 'after:right-0 after:top-0'}`" + :class="`after:content-['${num}'] after:size-${num >= 100 ? 6 : num >= 10 ? 5 : num > 0 ? 4 : 0} ${num >= 100 ? 'after:-right-1.5 after:-top-1.5' : num >= 10 ? 'after:-right-0.5 after:-top-0.5' : 'after:right-0 after:top-0'}`" >