fix: widen audit log drawer (#3001)
* fix: widen audit log drawer * style: remove audit drawer comment * feat: make audit log drawer resizablemain
parent
7c4b5f1bfe
commit
2834e6dcf6
|
|
@ -380,8 +380,10 @@
|
|||
<!-- Audit log drawer. Only rendered for Admin+ because the backend
|
||||
route is g.Admin()-gated; rendering it for lower roles would
|
||||
just produce an unhelpful 403. Lazy-loaded on first open. -->
|
||||
<t-drawer v-if="canViewAudit" v-model:visible="auditDrawerVisible" :header="$t('tenantMember.audit.tabLabel')"
|
||||
drawer-class-name="tenant-members-audit-drawer" size="880px" :footer="false" placement="right" destroy-on-close>
|
||||
<SettingDrawer v-if="canViewAudit" v-model:visible="auditDrawerVisible"
|
||||
:title="$t('tenantMember.audit.tabLabel')" width="1120px" :min-width="720" :max-width="1600"
|
||||
storage-key="setting-drawer:width:tenant-members-audit" :hide-footer="true"
|
||||
drawer-class-name="tenant-members-audit-drawer">
|
||||
<div class="audit-drawer-inner audit-panel audit-panel--drawer">
|
||||
<div class="audit-header">
|
||||
<span class="audit-desc">{{ $t('tenantMember.audit.description') }}</span>
|
||||
|
|
@ -506,7 +508,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t-drawer>
|
||||
</SettingDrawer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -514,6 +516,7 @@
|
|||
import { computed, nextTick, onUnmounted, reactive, ref, watch } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { MessagePlugin } from 'tdesign-vue-next'
|
||||
import SettingDrawer from '@/components/settings/SettingDrawer.vue'
|
||||
import { copyWithToast } from '@/utils/clipboard'
|
||||
import { useAuthStore } from '@/stores/auth'
|
||||
import { AUDIT_ACTION_I18N_ROOTS } from '@/i18n/auditActionRegistry'
|
||||
|
|
@ -2508,6 +2511,7 @@ watch(
|
|||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: 100vw;
|
||||
max-height: 100vh;
|
||||
height: 100%;
|
||||
}
|
||||
|
|
@ -2520,4 +2524,9 @@ watch(
|
|||
box-sizing: border-box;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
.t-drawer.tenant-members-audit-drawer .setting-drawer__body {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in New Issue