diff --git a/registry/lib/components/feeds/disable-details/disable-details.scss b/registry/lib/components/feeds/disable-details/disable-details.scss index 35965bf58..c33bed29b 100644 --- a/registry/lib/components/feeds/disable-details/disable-details.scss +++ b/registry/lib/components/feeds/disable-details/disable-details.scss @@ -1,4 +1,4 @@ -[data-module="desc"], +[data-module="desc"][data-orig], .card[data-did] .content { cursor: text; .details { @@ -13,3 +13,8 @@ } } } +.bili-rich-text-module { + &.at { + cursor: pointer; + } +} diff --git a/registry/lib/components/feeds/disable-details/index.ts b/registry/lib/components/feeds/disable-details/index.ts index 2d2512158..83fd7d6cc 100644 --- a/registry/lib/components/feeds/disable-details/index.ts +++ b/registry/lib/components/feeds/disable-details/index.ts @@ -27,6 +27,14 @@ const entry = async () => { if (target.hasAttribute('click-title')) { return } + console.log({ target }) + if ([ + 'bili-rich-text-topic', + 'bili-rich-text-module', + 'bili-rich-text-link', + ].some(className => target.classList.contains(className))) { + return + } const popups = dqa(element, '.im-popup') if (popups.some(p => p.contains(target))) { return