mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-26 01:22:20 +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;
|
||||
|
||||
get previewLength() {
|
||||
// todo: replace with js breakpoint API
|
||||
// https://github.com/discourse/discourse/pull/32060
|
||||
if (this.site.mobileView || this.site.narrowDesktopView) {
|
||||
if (!this.capabilities.viewport.md) {
|
||||
return 50;
|
||||
} else {
|
||||
return 10000;
|
||||
|
Loading…
x
Reference in New Issue
Block a user