style(ticket): Improve mobile layout for ticket card component

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
kbe
2025-08-28 18:46:25 +02:00
parent a3dce5c363
commit 2fd93dc3bf

View File

@@ -12,8 +12,8 @@
</div>
</div>
<div class="flex justify-between items-center mt-4">
<div>
<div class="flex flex-col sm:flex-row sm:justify-between sm:items-center mt-4 gap-3">
<div class="<%= 'order-2 sm:order-1' unless sold_out %>">
<% if sold_out %>
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800">
<svg class="-ml-0.5 mr-1 h-2 w-2 text-red-400" fill="currentColor" viewBox="0 0 8 8">
@@ -32,7 +32,7 @@
</div>
<% unless sold_out %>
<div class="flex items-center space-x-2">
<div class="flex items-center space-x-2 order-1 sm:order-2">
<button type="button"
class="w-8 h-8 rounded-full bg-gray-100 hover:bg-gray-200 flex items-center justify-center transition-colors duration-200"
data-action="click->ticket-cart#decreaseQuantity"
@@ -59,7 +59,7 @@
</button>
</div>
<% else %>
<div class="text-sm text-gray-500 font-medium">
<div class="text-sm text-gray-500 font-medium order-1 sm:order-2">
<svg class="w-5 h-5 inline-block mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path>
</svg>