From 3e8f26e517f09ad6bc7274a2ab70098b6c12d34d Mon Sep 17 00:00:00 2001 From: the1812 Date: Sun, 19 Nov 2023 15:14:35 +0800 Subject: [PATCH] Skip expand on column feed (#4475) --- .../components/feeds/full-content/full-content.scss | 2 +- registry/lib/components/feeds/full-content/index.md | 1 + registry/lib/components/feeds/full-content/index.ts | 13 ++++++++----- 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 registry/lib/components/feeds/full-content/index.md diff --git a/registry/lib/components/feeds/full-content/full-content.scss b/registry/lib/components/feeds/full-content/full-content.scss index 000c8a17a..23a8861c4 100644 --- a/registry/lib/components/feeds/full-content/full-content.scss +++ b/registry/lib/components/feeds/full-content/full-content.scss @@ -1,4 +1,4 @@ -.bili-dyn-content, +.dyn-card-opus__summary:first-child, .card .main-content { .bili-rich-text__action, .expand-btn, diff --git a/registry/lib/components/feeds/full-content/index.md b/registry/lib/components/feeds/full-content/index.md new file mode 100644 index 000000000..3668c6a84 --- /dev/null +++ b/registry/lib/components/feeds/full-content/index.md @@ -0,0 +1 @@ +不管内容多长, 总是完全展开动态的内容. (专栏不算) diff --git a/registry/lib/components/feeds/full-content/index.ts b/registry/lib/components/feeds/full-content/index.ts index 2aae4dc58..98cb7cc83 100644 --- a/registry/lib/components/feeds/full-content/index.ts +++ b/registry/lib/components/feeds/full-content/index.ts @@ -1,13 +1,16 @@ import { defineComponentMetadata } from '@/components/define' -import { toggleStyle } from '@/components/styled-component' import { feedsUrlsWithoutDetail } from '@/core/utils/urls' export const component = defineComponentMetadata({ - ...toggleStyle('fullFeedsContent', () => import('./full-content.scss')), + name: 'fullFeedsContent', + instantStyles: [ + { + name: 'full-feeds-content', + style: () => import('./full-content.scss'), + }, + ], displayName: '展开动态内容', - description: { - 'zh-CN': '不管内容多长, 总是完全展开动态的内容.', - }, tags: [componentsTags.style, componentsTags.feeds], urlInclude: feedsUrlsWithoutDetail, + entry: none, })