mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-08 15:22:47 +00:00
Revert "DEV: Replace narrowDesktopView logic with viewport API (#1372)"
This reverts commit 59d6e2b467d1d1e558b59d9d32794231791ee241.
This commit is contained in:
parent
59d6e2b467
commit
9d8895dad1
@ -19,7 +19,9 @@ export default class AiFullPageDiscobotDiscoveries extends Component {
|
|||||||
@service site;
|
@service site;
|
||||||
|
|
||||||
get previewLength() {
|
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;
|
return 50;
|
||||||
} else {
|
} else {
|
||||||
return 10000;
|
return 10000;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user