From 1acb9db38e894d99b51636c24e769c8cc88c7b96 Mon Sep 17 00:00:00 2001 From: sexygoat <1538832180@qq.com> Date: Sat, 11 Apr 2026 17:04:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=B3=E8=81=94=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=8D=95=E9=80=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/common/account-list.vue | 44 +++++++++++-------------------- 1 file changed, 16 insertions(+), 28 deletions(-) diff --git a/src/views/common/account-list.vue b/src/views/common/account-list.vue index 8ed47a8..628fad2 100644 --- a/src/views/common/account-list.vue +++ b/src/views/common/account-list.vue @@ -797,38 +797,38 @@ display: flex; flex-direction: column; gap: 8px; + width: 100%; .role-item { + display: block; + width: 100%; padding: 10px 12px; border: 1px solid var(--el-border-color-lighter); border-radius: 4px; transition: all 0.2s; + box-sizing: border-box; &:hover { background: var(--el-fill-color-light); border-color: var(--el-border-color); } - :deep(.el-checkbox) { + .role-info { + display: flex; + flex: 1; + gap: 8px; + align-items: center; + } + + :deep(.el-checkbox), + :deep(.el-radio) { + display: flex; width: 100%; - .el-checkbox__label { + .el-checkbox__label, + .el-radio__label { display: flex; width: 100%; - - .role-info { - display: flex; - flex: 1; - gap: 8px; - align-items: center; - justify-content: space-between; - width: 100%; - - > span:first-child { - flex: 1; - min-width: 0; - } - } } } } @@ -840,19 +840,7 @@ justify-content: space-between; .role-info { - display: flex; flex: 1; - gap: 8px; - align-items: center; - justify-content: space-between; - - > span:first-child { - flex: 1; - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } } .el-button {