🐛 修复内容组件导入与文章内边距控制
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import { DataAnomaly, defaultMetaData } from '~/types/PostMetaData';
|
||||
import type { PostMetaData } from '~/types/PostMetaData';
|
||||
import ArticleContent from '~/pages/index/article/[articleID]/components/ArticleContent.vue';
|
||||
|
||||
const props = withDefaults(defineProps<{
|
||||
metaData?: PostMetaData;
|
||||
@@ -111,7 +112,7 @@ function reverseCollapsed() {
|
||||
<div
|
||||
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}">
|
||||
<ArticleContent v-if="article" :article="article" class="w-full"/>
|
||||
<ArticleContent v-if="article" :article="article" :no-padding="true" class="w-full"/>
|
||||
<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="collapsed && showShadow?'opacity-100':'opacity-0'"
|
||||
|
||||
Reference in New Issue
Block a user