fix layout

This commit is contained in:
Timi
2026-10-28 14:21:26 +08:00
parent 5609d2484e
commit adc6e38328
83 changed files with 5587 additions and 5386 deletions
+35 -31
View File
@@ -1,34 +1,38 @@
<template>
<t-navbar
fixed
:z-index="20"
title="通知详情"
left-arrow
@left-click="$router.back()"
>
<template #right>
<t-button
v-if="detail?.id"
@click="confirmDelete"
theme="danger"
variant="text"
size="small"
content="删除"
/>
</template>
</t-navbar>
<div v-can="corePermissionCodes.notify.read" class="notify-detail">
<notify-content
v-if="detail"
:detail="detail"
:sender="getSenderName(detail)"
:timestamp="detail.sendAt"
:resolve-attachment-url="resolveAttachmentUrl"
/>
<t-empty
v-else
:description="isLoading ? '正在加载通知' : '通知不存在'"
/>
<div class="page-layout navbar">
<t-navbar
fixed
:z-index="20"
title="通知详情"
left-arrow
@left-click="$router.back()"
>
<template #right>
<t-button
v-if="detail?.id"
@click="confirmDelete"
theme="danger"
variant="text"
size="small"
content="删除"
/>
</template>
</t-navbar>
<main class="page-content scroll column">
<div v-can="corePermissionCodes.notify.read" class="notify-detail">
<notify-content
v-if="detail"
:detail="detail"
:sender="getSenderName(detail)"
:timestamp="detail.sendAt"
:resolve-attachment-url="resolveAttachmentUrl"
/>
<t-empty
v-else
:description="isLoading ? '正在加载通知' : '通知不存在'"
/>
</div>
</main>
</div>
</template>
@@ -166,7 +170,7 @@ watch(() => route.params.id, async () => {
<style scoped lang="less">
.notify-detail {
padding: var(--app-nav-height) 0 1rem 0;
padding: 0 0 1rem 0;
}
</style>