fix article style

This commit is contained in:
Timi
2026-08-31 20:28:38 +08:00
parent 53727d4c76
commit 100d4c4c44
6 changed files with 14 additions and 47 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<t-form v-else class="form" label-align="left" label-width="5rem"> <t-form v-else class="form" label-align="left" label-width="5rem">
<t-form-item label="通知标题" required-mark> <t-form-item label="通知标题" required-mark>
<t-input <t-input
v-model.trim="subject" v-model="subject"
borderless borderless
maxlength="100" maxlength="100"
placeholder="请输入通知标题" placeholder="请输入通知标题"
+3 -29
View File
@@ -26,6 +26,7 @@
content="取消发送" content="取消发送"
/> />
<notify-content <notify-content
class="preview"
:detail="mainDetail" :detail="mainDetail"
:subject="getSubject(detail)" :subject="getSubject(detail)"
:time="getSendTime(mainDetail)" :time="getSendTime(mainDetail)"
@@ -276,35 +277,8 @@ onUnmounted(() => navBarStore.clearRight());
border-radius: 1.4rem; border-radius: 1.4rem;
} }
.header { .preview {
text-align: center; background: #FFF;
padding-bottom: 1rem;
border-bottom: 1px solid rgba(148, 163, 184, .2);
h1 {
margin: 0;
font-size: 1.25rem;
line-height: 1.5;
}
.time {
color: #64748b;
margin-top: .5rem;
font-size: .8125rem;
}
}
.body {
color: #334155;
padding-top: 1rem;
font-size: .9375rem;
line-height: 1.8;
word-break: break-word;
.empty-content {
color: #64748b;
text-align: center;
}
} }
} }
</style> </style>
+1 -5
View File
@@ -160,10 +160,6 @@ onUnmounted(() => {
<style scoped lang="less"> <style scoped lang="less">
.notify-detail { .notify-detail {
gap: 1rem; padding: var(--app-nav-height) 0 1rem 0;
min-height: 100%;
padding: calc(var(--app-nav-height) + 1rem) 0 1rem 0;
display: flex;
flex-direction: column;
} }
</style> </style>
+4 -8
View File
@@ -52,16 +52,12 @@ const subjectValue = computed(() => props.subject.trim() || props.detail?.subjec
<style scoped lang="less"> <style scoped lang="less">
.notify-content { .notify-content {
margin: 0 1rem;
padding: 1rem; padding: 1rem;
background: var(--td-bg-color-container);
box-shadow: var(--td-shadow-1);
border-radius: 1.4rem;
.header { .header {
text-align: center; text-align: center;
padding-bottom: 1rem;
border-bottom: 1px solid rgba(148, 163, 184, .2); border-bottom: 1px solid rgba(148, 163, 184, .2);
padding-bottom: 1rem;
h1 { h1 {
margin: 0; margin: 0;
@@ -72,18 +68,18 @@ const subjectValue = computed(() => props.subject.trim() || props.detail?.subjec
.time, .time,
.sender { .sender {
color: #64748b; color: #64748b;
margin-top: .5rem;
font-size: .8125rem; font-size: .8125rem;
margin-top: .5rem;
} }
} }
.body { .body {
color: #334155; color: #334155;
padding-top: 1rem;
font-size: .9375rem; font-size: .9375rem;
word-break: break-word;
line-height: 1.8; line-height: 1.8;
white-space: pre-wrap; white-space: pre-wrap;
word-break: break-word; padding-top: 1rem;
:deep(.content) { :deep(.content) {
border: none; border: none;
+3 -2
View File
@@ -11,7 +11,6 @@
underline underline
/> />
</header> </header>
<t-divider />
<section class="content" v-entrance-transition="70"> <section class="content" v-entrance-transition="70">
<article-view <article-view
:article="article" :article="article"
@@ -194,7 +193,9 @@ onUnmounted(() => navBarStore.clearRight());
padding: var(--app-nav-height) 0 calc(1rem + env(safe-area-inset-bottom, 0)); padding: var(--app-nav-height) 0 calc(1rem + env(safe-area-inset-bottom, 0));
.header { .header {
padding: 1.25rem 1rem; margin: 0 1rem;
padding: 1.25rem 0;
border-bottom: 1px solid rgba(148, 163, 184, .2);
h1 { h1 {
margin: 0; margin: 0;
+2 -2
View File
@@ -27,8 +27,8 @@ const notifyRoutes: RouteRecordRaw[] = [
navBarCanBack: true, navBarCanBack: true,
navBarTitle: "通知详情", navBarTitle: "通知详情",
tabBarVisible: false, tabBarVisible: false,
bodyBackground: "#F5F5F8", bodyBackground: "#FFF",
darkBodyBackground: "#10161f" darkBodyBackground: "#000"
} }
} }
]; ];