DEV: Use transformed useMobileLayout value in topic-list/item (#31128)

This commit is contained in:
David Taylor 2025-02-03 17:57:44 +00:00 committed by GitHub
parent 7c50543da5
commit a8e10521c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,7 @@ export default class Item extends Component {
let expandPinned;
if (
!this.args.topic.pinned ||
(this.site.mobileView && !this.siteSettings.show_pinned_excerpt_mobile) ||
(this.useMobileLayout && !this.siteSettings.show_pinned_excerpt_mobile) ||
(this.site.desktopView && !this.siteSettings.show_pinned_excerpt_desktop)
) {
expandPinned = false;
@ -71,7 +71,7 @@ export default class Item extends Component {
return applyValueTransformer(
"topic-list-item-expand-pinned",
expandPinned,
{ topic: this.args.topic, mobileView: this.site.mobileView }
{ topic: this.args.topic, mobileView: this.useMobileLayout }
);
}