From ee74dcb5459c8187bb9ac9b9aa96589e2006a970 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Mon, 18 May 2026 22:29:05 +0800 Subject: [PATCH] Revert "style(tenant-members): unify role identity with a colored chip across surfaces" This reverts commit a6949155c90abd59a7c359ab6ed6a6c57bc2427f. --- frontend/src/views/settings/TenantMembers.vue | 125 ++---------------- 1 file changed, 8 insertions(+), 117 deletions(-) diff --git a/frontend/src/views/settings/TenantMembers.vue b/frontend/src/views/settings/TenantMembers.vue index a770934f..73fa813c 100644 --- a/frontend/src/views/settings/TenantMembers.vue +++ b/frontend/src/views/settings/TenantMembers.vue @@ -25,10 +25,8 @@
- - {{ $t('tenantMember.role.' + r) }} + + {{ $t('tenantMember.role.' + r) }} {{ $t('common.me') }}
@@ -104,13 +102,7 @@
@@ -249,13 +241,7 @@ - - + {{ $t('tenantMember.role.' + row.role) }}
@@ -1460,69 +1446,6 @@ watch( } } -/* Role identity chip: a colored circular badge that visually anchors - each role. Same chip is reused in the permissions popover and inline - inside role tags in the members / invitations tables so the visual - language stays consistent across surfaces. */ -.role-icon-chip { - display: inline-flex; - align-items: center; - justify-content: center; - width: 22px; - height: 22px; - border-radius: 50%; - background: var(--role-chip-bg, var(--td-bg-color-component)); - color: var(--role-chip-fg, var(--td-text-color-primary)); - box-shadow: 0 0 0 1px var(--role-chip-ring, transparent) inset; - flex-shrink: 0; - line-height: 1; - - .t-icon { - color: inherit; - } - - &--owner { - --role-chip-bg: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); - --role-chip-fg: #fff; - --role-chip-ring: rgba(217, 119, 6, 0.35); - } - - &--admin { - --role-chip-bg: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); - --role-chip-fg: #fff; - --role-chip-ring: rgba(234, 88, 12, 0.35); - } - - &--contributor { - --role-chip-bg: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%); - --role-chip-fg: #fff; - --role-chip-ring: rgba(37, 99, 235, 0.35); - } - - &--viewer { - --role-chip-bg: linear-gradient(135deg, #94a3b8 0%, #475569 100%); - --role-chip-fg: #fff; - --role-chip-ring: rgba(71, 85, 105, 0.35); - } - - /* Compact variant for use inside t-tag (members / invitations table). - Smaller footprint so the tag height stays aligned with the other - small-size tags in the row. */ - &--inline { - width: 16px; - height: 16px; - margin-right: 2px; - } -} - -/* Slightly tighten t-tag inner gap so the chip sits flush against the - role label without looking detached. */ -.role-tag-with-icon { - &:deep(.t-tag__icon) { - margin-right: 4px; - } -} - .permissions-compact { padding: 8px; @@ -1551,29 +1474,11 @@ watch( } .perm-role-block { - position: relative; border: 1px solid var(--td-component-stroke); border-radius: 8px; - padding: 14px 16px 14px 18px; + padding: 14px 16px; background: var(--td-bg-color-container); transition: all 0.2s ease; - border-left: 3px solid var(--role-accent, var(--td-component-stroke)); - - &.owner { - --role-accent: #d97706; - } - - &.admin { - --role-accent: #ea580c; - } - - &.contributor { - --role-accent: var(--td-brand-color); - } - - &.viewer { - --role-accent: #64748b; - } &.is-me { border-color: var(--td-brand-color); @@ -1583,16 +1488,12 @@ watch( .perm-role-tag { display: flex; align-items: center; - gap: 8px; + gap: 6px; font-size: 14px; font-weight: 600; color: var(--td-text-color-primary); margin-bottom: 12px; - .perm-role-name { - flex: 0 1 auto; - } - .me-badge { margin-left: auto; font-size: 12px; @@ -1668,23 +1569,13 @@ watch( } .perm-role-block { - padding: 8px 10px 8px 12px; + padding: 8px 10px; border-radius: 6px; - border-left-width: 3px; .perm-role-tag { font-size: 12px; margin-bottom: 6px; - gap: 6px; - - .role-icon-chip { - width: 18px; - height: 18px; - - .t-icon { - font-size: 11px !important; - } - } + gap: 4px; .me-badge { font-size: 10px;