fix(admin): 调整角色列宽度防止换行

This commit is contained in:
2025-11-27 20:52:31 +08:00
parent 599fa2c550
commit c411ffac19

View File

@@ -2028,9 +2028,9 @@
<table style="width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 900px;">
<thead>
<tr style="border-bottom: 2px solid #ddd; background: #f5f5f5;">
<th style="padding: 10px; text-align: left; width: 5%;">ID</th>
<th style="padding: 10px; text-align: left; width: 11%;">用户名</th>
<th style="padding: 10px; text-align: center; width: 8%;">角色</th>
<th style="padding: 10px; text-align: left; width: 4%;">ID</th>
<th style="padding: 10px; text-align: left; width: 10%;">用户名</th>
<th style="padding: 10px; text-align: center; width: 10%;">角色</th>
<th style="padding: 10px; text-align: left; width: 14%;">邮箱</th>
<th style="padding: 10px; text-align: center; width: 9%;">存储权限</th>
<th style="padding: 10px; text-align: center; width: 9%;">当前存储</th>
@@ -2048,10 +2048,10 @@
</div>
</td>
<td style="padding: 10px; text-align: center; font-size: 12px;">
<span v-if="u.is_admin" style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 3px 10px; border-radius: 4px;">
<span v-if="u.is_admin" style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 3px 10px; border-radius: 4px; white-space: nowrap;">
<i class="fas fa-crown"></i> 管理员
</span>
<span v-else style="background: #e9ecef; color: #495057; padding: 3px 10px; border-radius: 4px;">
<span v-else style="background: #e9ecef; color: #495057; padding: 3px 10px; border-radius: 4px; white-space: nowrap;">
<i class="fas fa-user"></i> 用户
</span>
</td>