Revert "DEV: Replace narrowDesktopView logic with viewport API (#1372)"
This reverts commit 59d6e2b467
.
This commit is contained in:
parent
59d6e2b467
commit
9d8895dad1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue