style: 操作列统一左对齐(撤销右对齐)

UsersView 移除 align=right,三页移除 .op-col 应用,base.css 删除 .op-col 定义;规范13.4 改为左对齐
This commit is contained in:
DuMate
2026-09-26 22:48:20 +08:00
parent 83cb4dd253
commit 189aa2ba7a
7 changed files with 6 additions and 9 deletions
-3
View File
@@ -146,9 +146,6 @@ html[data-theme="dark"] .ambient::after {
}
.btn.op-btn-cell + .btn.op-btn-cell { margin-left: 7px; }
/* 表格操作列:统一右对齐(th/td 通用) */
.op-col { text-align: right; }
/* —— 标签(状态标签体系) —— */
.tag {
display: inline-flex;
+2 -2
View File
@@ -64,7 +64,7 @@ async function doUnignore(pkg) {
<th style="width: 140px">版本数</th>
<th style="width: 150px">占用空间</th>
<th style="width: 170px">忽略时间</th>
<th style="width: 130px" class="op-col">操作</th>
<th style="width: 130px">操作</th>
</tr>
</thead>
<tbody>
@@ -74,7 +74,7 @@ async function doUnignore(pkg) {
<td><span class="num-cell">{{ p.versions }}</span></td>
<td><span class="num-cell">{{ fmtSize(p.size) }}</span></td>
<td><span class="ign-time">{{ p.ignoredAt || '—' }}</span></td>
<td class="op-col">
<td>
<button class="btn unignore op-btn-cell" @click="doUnignore(p)">↩️ 移出忽略</button>
</td>
</tr>
+1 -1
View File
@@ -373,7 +373,7 @@ function detailTitle(log) {
<tbody>
<template v-for="(log, i) in state.logs" :key="log.id">
<tr @click="detail = log">
<td v-for="c in activeCols" :key="c.key" :class="c.key === 'op' ? 'op-col' : ''" @click.stop>
<td v-for="c in activeCols" :key="c.key" @click.stop>
<template v-if="c.key === 'op'">
<button class="btn unignore op-btn-cell" @click.stop="detail = log">详情</button>
</template>
+1 -1
View File
@@ -470,7 +470,7 @@ async function submitPull() {
<td><span class="num-cell">{{ fmtSize(p.size) }}</span></td>
<td><span class="date-cell">{{ p.lastUpdated || '—' }}</span></td>
<td><StatusTag :status="p.status" /></td>
<td class="op-col" @click.stop>
<td @click.stop>
<template v-if="p.status === 'warn'">
<button class="btn clean op-btn-cell" @click="openClean(p)">清理</button>
<button class="btn ignore op-btn-cell" @click="doIgnore(p)">忽略</button>
+1 -1
View File
@@ -40,7 +40,7 @@
<span class="cell-time">{{ createdAt(row) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" width="176" align="right">
<el-table-column label="操作" width="176">
<template #default="{ row }">
<button class="btn ignore op-btn-cell" :disabled="row.source === 'builtin'" @click="openPwd(row)">修改密码</button>
<button class="btn remove op-btn-cell" :disabled="row.source === 'builtin' || row.name === currentName" @click="del(row)">删除</button>