Revert "DEV: Replace narrowDesktopView logic with viewport API (#1372)"

This reverts commit 59d6e2b467.
This commit is contained in:
Alan Guo Xiang Tan 2025-05-30 09:51:46 +08:00
parent 59d6e2b467
commit 9d8895dad1
No known key found for this signature in database
GPG Key ID: 286D2AB58F8C86B6
1 changed files with 3 additions and 1 deletions

View File

@ -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;