feat: Make type options fill width on mobile in submit form
This commit is contained in:
1 parent
c6dace4d67
commit
c51d457e16
1 file changed
+6
-6
@@ -14,23 +14,23 @@
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-primary mb-2">Type</label>
|
||||
<div class="flex space-x-4">
|
||||
<div class="flex flex-col space-y-4 md:flex-row md:space-y-0 md:space-x-4">
|
||||
<!-- 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="w-full 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 -->
|
||||
<img src="/assets/images/icon_frustrated.png" alt="Frustration Icon" class="w-6 h-6 object-contain">
|
||||
<span class="text-sm font-action font-medium text-primary">Frustration</span>
|
||||
</label>
|
||||
<!-- 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="w-full 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 -->
|
||||
<img src="/assets/images/icon_win.png" alt="Win Icon" class="w-6 h-6 object-contain">
|
||||
<span class="text-sm font-action font-medium text-primary">Win</span>
|
||||
</label>
|
||||
<!-- Weird 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">
|
||||
<input type="radio" name="post_type" value="win" class="sr-only" required> <!-- Hidden radio button -->
|
||||
<img src="/assets/images/icon_weird.png" alt="Win Icon" class="w-6 h-6 object-contain">
|
||||
<label class="w-full 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="weird" class="sr-only" required> <!-- Hidden radio button -->
|
||||
<img src="/assets/images/icon_weird.png" alt="Weird Icon" class="w-6 h-6 object-contain">
|
||||
<span class="text-sm font-action font-medium text-primary">Weird</span>
|
||||
</label>
|
||||
<!-- Add more types here following the same pattern -->
|
||||
|
||||
Reference in new issue
Block a user