Merge branch 'chore/grants-table-overflow'

This commit is contained in:
ymy
2026-07-27 16:54:07 +08:00
+7 -3
View File
@@ -240,7 +240,10 @@
{:else if shown === null} {:else if shown === null}
<div class="quiet py-[18px] text-center">加载中…</div> <div class="quiet py-[18px] text-center">加载中…</div>
{:else} {:else}
<table class="list"> <!-- 内容不可断行(头像名/id/日期/下拉)可能超宽:溢出时横向滚动,
而不是把表格挤变形或顶出 panel 右边界(文件预览打开时主区变窄)。 -->
<div class="overflow-x-auto">
<table class="list">
<thead> <thead>
<tr> <tr>
<th class="whitespace-nowrap pr-4">成员</th> <th class="whitespace-nowrap pr-4">成员</th>
@@ -295,7 +298,7 @@
{/if} {/if}
</td> </td>
<td class="file-meta whitespace-nowrap pr-4">{fmtDate(g.createdAt)}</td> <td class="file-meta whitespace-nowrap pr-4">{fmtDate(g.createdAt)}</td>
<td class="whitespace-nowrap text-right"> <td class="whitespace-nowrap pr-2 text-right">
{#if !g.isCreatorGrant && canManage} {#if !g.isCreatorGrant && canManage}
<button class="link-danger inline-flex items-center gap-1" onclick={() => void revoke(g)}> <button class="link-danger inline-flex items-center gap-1" onclick={() => void revoke(g)}>
<Icon name="trash" size={12} /> 删除 <Icon name="trash" size={12} /> 删除
@@ -306,7 +309,8 @@
{/each} {/each}
{/if} {/if}
</tbody> </tbody>
</table> </table>
</div>
{/if} {/if}
</div> </div>