fix(web-admin): 质检工单卡片操作区顶对齐并两列收窄 (#181)

消除贴底空白与单行过宽:右侧操作按钮改为两列内容宽网格并顶对齐,更多仅保留图标。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-12-02 18:09:21 +08:00
1 parent 5072ca8cda
commit b6d33fb1fd
1 file changed
+26 -6
@@ -224,10 +224,11 @@
</el-button>
<el-dropdown
v-if="hasMoreWorkOrderActions(row)"
class="qc-work-order-card__ops-more"
trigger="hover"
@command="(cmd) => emit('command', cmd, row)"
>
<el-button class="btn-op-item">
<el-button class="btn-op-item" aria-label="更多" title="更多">
<el-icon><More /></el-icon>
</el-button>
<template #dropdown>
@@ -810,14 +811,33 @@
border-bottom: none;
}
/* 右侧操作区:顶对齐 + 两列内容宽,换行占满左侧信息旁的纵向空间 */
.qc-work-order-card__ops {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
display: grid;
grid-template-columns: repeat(2, max-content);
justify-content: end;
justify-items: start;
align-content: start;
gap: 8px;
flex-shrink: 0;
align-self: flex-end;
align-self: flex-start;
:deep(.el-button),
:deep(.el-button + .el-button),
:deep(.el-button + .el-dropdown),
:deep(.el-dropdown) {
margin-left: 0;
margin-right: 0;
}
:deep(.qc-work-order-card__ops-more) {
display: inline-flex;
.el-tooltip__trigger,
.el-button {
width: auto;
}
}
}
.qc-work-order-card__tasks {