Skip to content

Commit

Permalink
fix: dont use mobile excerpt on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Nov 27, 2024
1 parent 84fe55f commit d28582f
Show file tree
Hide file tree
Showing 3 changed files with 290 additions and 324 deletions.
3 changes: 2 additions & 1 deletion js/src/forum/addSummaryExcerpt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export default function addSummaryExcerpt() {
if (excerptPost) {
const excerpt = <Excerpt post={excerptPost} length={excerptLength} richExcerpt={richExcerpt} />;

items.add(onMobile ? 'excerptM' : 'excerpt', excerpt, -100);
items.add('excerpt', excerpt, -100);
onMobile && items.add('excerptM', excerpt, -100);
}
});
}
Loading

0 comments on commit d28582f

Please sign in to comment.