diff --git a/dashboard/src/components/settings/RoleConfigureDialog.vue b/dashboard/src/components/settings/RoleConfigureDialog.vue index 9c60d6a..986862d 100644 --- a/dashboard/src/components/settings/RoleConfigureDialog.vue +++ b/dashboard/src/components/settings/RoleConfigureDialog.vue @@ -69,7 +69,7 @@ - +
@@ -90,86 +90,72 @@ -

{{ $t('Page Access Permissions') }}

- - -
- {{ $t('Allow Billing Access') }} - -
-
- -
- {{ $t('Allow Apps Access') }} - -
-
- -
- {{ $t('Allow Partner Access') }} - -
-
- -
- {{ $t('Allow Site Creation') }} - -
-
- -
- {{ $t('Allow Release Group Creation') }} - -
-
- -
- {{ $t('Allow Server Creation') }} - -
-
- -
- {{ $t('Allow Webhook Configuration') }} - -
-
-
+

{{ $t('Page Access Permissions') }}

+
+
+ {{ $t('Allow Billing Access') }} + +
+
+ {{ $t('Allow Apps Access') }} + +
+
+ {{ $t('Allow Partner Access') }} + +
+
+ {{ $t('Allow Site Creation') }} + +
+
+ {{ $t('Allow Release Group Creation') }} + +
+
+ {{ $t('Allow Server Creation') }} + +
+
+ {{ $t('Allow Webhook Configuration') }} + +
+
@@ -426,8 +412,38 @@ export default { padding: 20px 0; } -:deep(.role-configure-modal .n-form-item) { - margin-bottom: 0; +:deep(.role-configure-modal .n-card-body) { + padding: 12px 24px; +} + +.permissions-list { + display: flex; + flex-direction: column; +} + +.permission-item { + display: flex; + align-items: center; + justify-content: space-between; + padding: 8px 12px; + margin: 0 -12px; + border-radius: 4px; +} + +.permission-item:nth-child(even) { + background-color: #f9fafb; +} + +.permission-item:nth-child(odd) { + background-color: transparent; +} + +.permission-item:hover { + background-color: #f3f4f6; +} + +:deep(.role-configure-modal .n-switch) { + transition: all 0.2s ease; } @media (max-width: 768px) {