🐛 修复内容组件导入与文章内边距控制
This commit is contained in:
@@ -19,7 +19,7 @@ const themeComponents = {
|
|||||||
<template>
|
<template>
|
||||||
<ContentRenderer
|
<ContentRenderer
|
||||||
v-if="article" class="px-6 pb-6 pt-0.5 bg-old-neutral-200 dark:bg-old-neutral-800" :value="article!"
|
v-if="article" class="px-6 pb-6 pt-0.5 bg-old-neutral-200 dark:bg-old-neutral-800" :value="article!"
|
||||||
:class="{ 'p-0! [&_p]:m-0! [&_p]:leading-6': true }"
|
:class="{ 'p-0! [&_p]:m-0! [&_p]:leading-6': noPadding }"
|
||||||
:components="themeComponents['classic']"/>
|
:components="themeComponents['classic']"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import { DataAnomaly, defaultMetaData } from '~/types/PostMetaData';
|
import { DataAnomaly, defaultMetaData } from '~/types/PostMetaData';
|
||||||
import type { PostMetaData } from '~/types/PostMetaData';
|
import type { PostMetaData } from '~/types/PostMetaData';
|
||||||
|
import ArticleContent from '~/pages/index/article/[articleID]/components/ArticleContent.vue';
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
metaData?: PostMetaData;
|
metaData?: PostMetaData;
|
||||||
@@ -111,7 +112,7 @@ function reverseCollapsed() {
|
|||||||
<div
|
<div
|
||||||
class="relative flex mt-2 justify-between overflow-hidden duration-300 ease-in-out min-h-34"
|
class="relative flex mt-2 justify-between overflow-hidden duration-300 ease-in-out min-h-34"
|
||||||
:class="{'max-h-34' : collapsed, 'max-h-screen':!collapsed}">
|
:class="{'max-h-34' : collapsed, 'max-h-screen':!collapsed}">
|
||||||
<ArticleContent v-if="article" :article="article" class="w-full"/>
|
<ArticleContent v-if="article" :article="article" :no-padding="true" class="w-full"/>
|
||||||
<div
|
<div
|
||||||
class="absolute bottom-0 left-0 right-0 h-14 bg-linear-to-t from-old-neutral-200 dark:from-old-neutral-800 to-transparent pointer-events-none transition-opacity duration-300"
|
class="absolute bottom-0 left-0 right-0 h-14 bg-linear-to-t from-old-neutral-200 dark:from-old-neutral-800 to-transparent pointer-events-none transition-opacity duration-300"
|
||||||
:class="collapsed && showShadow?'opacity-100':'opacity-0'"
|
:class="collapsed && showShadow?'opacity-100':'opacity-0'"
|
||||||
|
|||||||
Reference in New Issue
Block a user