Skip to content

Commit

Permalink
fix: NewsList template display 2 columns of new when used in small co…
Browse files Browse the repository at this point in the history
…lumn - EXO- 70464

Meeds-io/MIPs#113 update breakpoint definition
This commit adapts breakpoint usage in news template
  • Loading branch information
rdenarie authored Mar 20, 2024
1 parent 0389a30 commit 46d7550
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default {
computed: {
numberOfColumns(){
const thresholds = this.$vuetify.breakpoint?.thresholds;
return this.parentWidth < thresholds.xs ? 12 : this.parentWidth < thresholds.sm ? 6 : this.parentWidth < thresholds.lg ? 4 : 3;
return this.parentWidth < thresholds.sm ? 12 : this.parentWidth < thresholds.md ? 6 : this.parentWidth < thresholds.lg ? 4 : 3;
}
},
created() {
Expand Down Expand Up @@ -141,4 +141,4 @@ export default {
},
}
};
</script>
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default {
},
computed: {
isMobile() {
return this.$vuetify.breakpoint.name === 'xs' || this.$vuetify.breakpoint.name === 'sm';
return this.$vuetify.breakpoint.name === 'xs' || this.$vuetify.breakpoint.name === 'sm' || this.$vuetify.breakpoint.name === 'md';
},
isSmallBreakpoint() {
return this.$vuetify.breakpoint.width < 651;
Expand Down

0 comments on commit 46d7550

Please sign in to comment.