Enhance CartItem component with non-selectable elements
- Added 'select-none' class to subtotal and remove button in CartItem.vue to prevent text selection during user interaction, improving the overall user experience.
This commit is contained in:
@@ -154,7 +154,7 @@ const placeholderImage = '/img/makerspace-jk-2025.jpg'
|
||||
<!-- Subtotal + Remove Button -->
|
||||
<div class="flex items-center gap-2">
|
||||
<!-- Subtotal -->
|
||||
<div class="flex flex-col text-right">
|
||||
<div class="flex flex-col text-right select-none">
|
||||
<div class="text-xs text-white/60 uppercase tracking-wide">
|
||||
Summe
|
||||
</div>
|
||||
@@ -164,7 +164,7 @@ const placeholderImage = '/img/makerspace-jk-2025.jpg'
|
||||
</div>
|
||||
|
||||
<!-- Remove Button (Mobile) -->
|
||||
<Button variant="ghost" size="icon" class="sm:hidden text-white/60 hover:text-red hover:bg-red/10 h-8 w-8"
|
||||
<Button variant="ghost" size="icon" class="sm:hidden text-white/60 hover:text-red hover:bg-red/10 h-8 w-8 select-none"
|
||||
:disabled="loading" @click="handleRemove">
|
||||
<Trash2 class="h-4 w-4" />
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user