style: Preserve aspect ratio of icons in submit form

This commit is contained in:
Kerby Martino (aider) committed 2025-05-04 13:13:44 +08:00
1 parent cc49b02f1d
commit a2389adece
1 file changed
+2 -2
+2 -2
View File
@@ -18,13 +18,13 @@
<!-- Frustration Option --> <!-- Frustration Option -->
<label class="flex items-center space-x-2 p-3 border-2 border-gray-300 rounded-md cursor-pointer hover:border-primary has-[:checked]:border-primary has-[:checked]:bg-primary/10 transition-colors duration-150 ease-in-out"> <label class="flex items-center space-x-2 p-3 border-2 border-gray-300 rounded-md cursor-pointer hover:border-primary has-[:checked]:border-primary has-[:checked]:bg-primary/10 transition-colors duration-150 ease-in-out">
<input type="radio" name="post_type" value="frustration" class="sr-only" required> <!-- Hidden radio button --> <input type="radio" name="post_type" value="frustration" class="sr-only" required> <!-- Hidden radio button -->
<img src="/assets/images/icon_frustrated.png" alt="Frustration Icon" class="w-6 h-6"> <img src="/assets/images/icon_frustrated.png" alt="Frustration Icon" class="w-6 h-6 object-contain">
<span class="text-sm font-medium text-primary">Frustration</span> <span class="text-sm font-medium text-primary">Frustration</span>
</label> </label>
<!-- Win Option --> <!-- Win Option -->
<label class="flex items-center space-x-2 p-3 border-2 border-gray-300 rounded-md cursor-pointer hover:border-primary has-[:checked]:border-primary has-[:checked]:bg-primary/10 transition-colors duration-150 ease-in-out"> <label class="flex items-center space-x-2 p-3 border-2 border-gray-300 rounded-md cursor-pointer hover:border-primary has-[:checked]:border-primary has-[:checked]:bg-primary/10 transition-colors duration-150 ease-in-out">
<input type="radio" name="post_type" value="win" class="sr-only" required> <!-- Hidden radio button --> <input type="radio" name="post_type" value="win" class="sr-only" required> <!-- Hidden radio button -->
<img src="/assets/images/icon_win.png" alt="Win Icon" class="w-6 h-6"> <img src="/assets/images/icon_win.png" alt="Win Icon" class="w-6 h-6 object-contain">
<span class="text-sm font-medium text-primary">Win</span> <span class="text-sm font-medium text-primary">Win</span>
</label> </label>
<!-- Add more types here following the same pattern --> <!-- Add more types here following the same pattern -->