Skip to content

Commit be8a5e8

Browse files
committed
fix(Classic Footer): do not apply styles to community posts
1 parent 963a109 commit be8a5e8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/features/classic_footer/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ import { onNewPosts } from '../../utils/mutations.js';
55
import { timelineObject } from '../../utils/react_props.js';
66

77
const noteCountClass = 'xkit-classic-footer-note-count';
8+
89
const footerContentSelector = `${postSelector} article footer ${keyToCss('footerContent')}`;
10+
const footerSelector = `${postSelector} article footer:has(> ${keyToCss('footerContent')})`;
911
const replyButtonSelector = `${footerContentSelector} button${keyToCss('engagementAction')}:has(svg use[href="#managed-icon__ds-reply-outline-24"])`;
1012

1113
const locale = document.documentElement.lang;
1214
const noteCountFormat = new Intl.NumberFormat(locale);
1315

1416
export const styleElement = buildStyle(`
15-
${postSelector} article footer {
17+
${footerSelector} {
1618
flex-direction: row;
1719
justify-content: space-between;
1820
align-items: center;

0 commit comments

Comments
 (0)