Skip to content

Commit 9d8895d

Browse files
committed
Revert "DEV: Replace narrowDesktopView logic with viewport API (#1372)"
This reverts commit 59d6e2b.
1 parent 59d6e2b commit 9d8895d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

assets/javascripts/discourse/connectors/full-page-search-below-search-header/ai-full-page-discobot-discoveries.gjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ export default class AiFullPageDiscobotDiscoveries extends Component {
1919
@service site;
2020

2121
get previewLength() {
22-
if (!this.capabilities.viewport.md) {
22+
// todo: replace with js breakpoint API
23+
// https://github.com/discourse/discourse/pull/32060
24+
if (this.site.mobileView || this.site.narrowDesktopView) {
2325
return 50;
2426
} else {
2527
return 10000;

0 commit comments

Comments
 (0)