Editing Super Admin permissions and visual changes

This commit is contained in:
2026-09-20 12:07:05 +03:30
parent 4a9fe0b07c
commit 0e580b19c3
9 changed files with 621 additions and 231 deletions
+38 -20
View File
@@ -285,10 +285,7 @@ onMounted(() => {
<template>
<div class="page">
<header class="head">
<div>
<h1>محیط‌ها</h1>
<p>ساخت، ویرایش و فعال/غیرفعال کردن سازمان‌ها و نقش اعضا.</p>
</div>
<p class="lead">ساخت، ویرایش، ماژول‌ها و نقش اعضا.</p>
<div class="head-actions">
<form class="search" @submit.prevent="load">
<input v-model="query" type="search" placeholder="جستجوی نام یا اسلاگ" />
@@ -488,37 +485,41 @@ onMounted(() => {
<style scoped>
.page {
display: grid;
gap: 1rem;
max-width: 1040px;
gap: 0.95rem;
max-width: 1080px;
}
.head {
display: flex;
justify-content: space-between;
gap: 1rem;
gap: 0.85rem;
flex-wrap: wrap;
align-items: center;
}
.head h1 {
margin: 0 0 0.3rem;
}
.lead,
.head p,
.muted {
margin: 0;
color: var(--muted);
font-size: 0.88rem;
}
.head-actions {
display: flex;
gap: 0.6rem;
gap: 0.55rem;
flex-wrap: wrap;
align-items: flex-start;
align-items: center;
}
.search {
display: flex;
gap: 0.5rem;
gap: 0.45rem;
padding: 0.25rem;
border-radius: 14px;
background: #fff;
border: 1px solid var(--line-light);
box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.search input,
@@ -528,14 +529,16 @@ onMounted(() => {
.edit-panel select,
.member-actions select {
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 0.65rem 0.8rem;
border-radius: 12px;
padding: 0.6rem 0.75rem;
font: inherit;
background: #fff;
}
.search input {
min-width: 220px;
min-width: 180px;
border: 0;
box-shadow: none;
}
.error {
@@ -552,10 +555,11 @@ onMounted(() => {
.edit-panel {
background: #fff;
border: 1px solid #eef2f7;
border-radius: 14px;
border-radius: 18px;
padding: 1rem;
display: grid;
gap: 0.85rem;
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.panel h2 {
@@ -593,11 +597,12 @@ label span {
.row {
background: #fff;
border: 1px solid #eef2f7;
border-radius: 14px;
padding: 0.85rem 1rem;
border-radius: 18px;
padding: 0.95rem 1rem;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 0.7rem 1rem;
box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}
.row-main {
@@ -726,5 +731,18 @@ label span {
.edit-panel {
grid-template-columns: 1fr;
}
.search {
width: 100%;
}
.search input {
flex: 1;
min-width: 0;
}
.row {
grid-template-columns: 1fr;
}
}
</style>