mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-26 09:32:40 +00:00
DEV: Replace narrowDesktopView logic with viewport API (#1372)
This commit is contained in:
parent
c06d7b07d5
commit
59d6e2b467
@ -19,9 +19,7 @@ export default class AiFullPageDiscobotDiscoveries extends Component {
|
|||||||
@service site;
|
@service site;
|
||||||
|
|
||||||
get previewLength() {
|
get previewLength() {
|
||||||
// todo: replace with js breakpoint API
|
if (!this.capabilities.viewport.md) {
|
||||||
// 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