Compare commits

...
Author SHA1 Message Date
Alan Guo Xiang Tan 9d8895dad1 Revert "DEV: Replace narrowDesktopView logic with viewport API (#1372)"
This reverts commit 59d6e2b467.
2025-05-30 09:51:46 +08:00
@@ -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;