Merge branch 'chore/grants-table-overflow'

This commit is contained in:
ymy
2026-07-27 16:54:07 +08:00
+5 -1
View File
@@ -240,6 +240,9 @@
{: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}
<!-- 内容不可断行(头像名/id/日期/下拉)可能超宽:溢出时横向滚动,
而不是把表格挤变形或顶出 panel 右边界(文件预览打开时主区变窄)。 -->
<div class="overflow-x-auto">
<table class="list"> <table class="list">
<thead> <thead>
<tr> <tr>
@@ -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} /> 删除
@@ -307,6 +310,7 @@
{/if} {/if}
</tbody> </tbody>
</table> </table>
</div>
{/if} {/if}
</div> </div>