fix(admin-users): align action buttons in a fixed-width column
The "Сменить пароль" / "Удалить" pair is now wrapped in a flex justify-end row with fixed widths (144px and 80px). When the "Удалить" button is hidden for the current user, an empty spacer of the same width keeps "Сменить пароль" in the same horizontal position across all rows. Cleans up the ragged column.
This commit is contained in:
parent
b1468eeb42
commit
0a403381c5
@ -179,22 +179,25 @@ onMounted(load);
|
|||||||
<option value="rop">rop</option>
|
<option value="rop">rop</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-3 text-right">
|
<td class="px-4 py-3">
|
||||||
<button
|
<div class="flex justify-end items-center gap-2">
|
||||||
type="button"
|
<button
|
||||||
class="btn-secondary !py-1 text-xs mr-2"
|
type="button"
|
||||||
@click="resetPassword(u)"
|
class="btn-secondary !py-1 text-xs w-36"
|
||||||
>
|
@click="resetPassword(u)"
|
||||||
Сменить пароль
|
>
|
||||||
</button>
|
Сменить пароль
|
||||||
<button
|
</button>
|
||||||
v-if="u.username !== auth.user?.username"
|
<button
|
||||||
type="button"
|
v-if="u.username !== auth.user?.username"
|
||||||
class="btn-danger !py-1 text-xs"
|
type="button"
|
||||||
@click="remove(u)"
|
class="btn-danger !py-1 text-xs w-20"
|
||||||
>
|
@click="remove(u)"
|
||||||
Удалить
|
>
|
||||||
</button>
|
Удалить
|
||||||
|
</button>
|
||||||
|
<span v-else class="w-20" aria-hidden="true"></span>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user