diff --git a/assets/javascripts/discourse/connectors/full-page-search-below-search-header/ai-full-page-discobot-discoveries.gjs b/assets/javascripts/discourse/connectors/full-page-search-below-search-header/ai-full-page-discobot-discoveries.gjs index a523173d..6662a628 100644 --- a/assets/javascripts/discourse/connectors/full-page-search-below-search-header/ai-full-page-discobot-discoveries.gjs +++ b/assets/javascripts/discourse/connectors/full-page-search-below-search-header/ai-full-page-discobot-discoveries.gjs @@ -19,7 +19,9 @@ export default class AiFullPageDiscobotDiscoveries extends Component { @service site; get previewLength() { - if (!this.capabilities.viewport.md) { + // todo: replace with js breakpoint API + // https://github.com/discourse/discourse/pull/32060 + if (this.site.mobileView || this.site.narrowDesktopView) { return 50; } else { return 10000;