feat(laptops): make entire laptop row clickable to open details modal
This commit is contained in:
parent
3a2ea2af20
commit
0c3d2315ca
1 changed files with 3 additions and 3 deletions
|
|
@ -201,12 +201,12 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="divide-y divide-slate-50">
|
<tbody class="divide-y divide-slate-50">
|
||||||
<template x-for="asset in sortedAssets" :key="asset.id">
|
<template x-for="asset in sortedAssets" :key="asset.id">
|
||||||
<tr class="hover:bg-slate-50/80 transition-colors group">
|
<tr class="hover:bg-slate-50/80 transition-colors group cursor-pointer" @click="editAsset(asset)">
|
||||||
<td class="px-6 py-4">
|
<td class="px-6 py-4" @click.stop>
|
||||||
<input type="checkbox" :value="asset.id" x-model="selectedIds"
|
<input type="checkbox" :value="asset.id" x-model="selectedIds"
|
||||||
class="w-4 h-4 rounded border-slate-300 text-blue-600 focus:ring-blue-500">
|
class="w-4 h-4 rounded border-slate-300 text-blue-600 focus:ring-blue-500">
|
||||||
</td>
|
</td>
|
||||||
<td class="px-6 py-4 whitespace-nowrap cursor-pointer" @click="editAsset(asset)">
|
<td class="px-6 py-4 whitespace-nowrap">
|
||||||
<span
|
<span
|
||||||
class="text-sm font-black text-slate-900 px-2.5 py-1 bg-slate-100 rounded-lg group-hover:bg-white transition-colors"
|
class="text-sm font-black text-slate-900 px-2.5 py-1 bg-slate-100 rounded-lg group-hover:bg-white transition-colors"
|
||||||
x-text="asset.asset_tag"></span>
|
x-text="asset.asset_tag"></span>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue