Skip to content

Commit

Permalink
fix : Adjust the styling of the news mosaic view on the extra-large s…
Browse files Browse the repository at this point in the history
…creen - EXO-66168 (#926)

Prior to this change, the news mosaic view articles were displayed like the mobile view on the extra-large screen. This issue was due to the incorrect check of the width based on the screen width. This change will display the news articles in the correct viewing mode .
  • Loading branch information
sofyenne committed Sep 21, 2023
1 parent 1f564a4 commit 3372feb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default {
this.getNewsList();
},
mounted() {
this.isSmallWidth = this.$refs && this.$refs['top-news-mosaic'] && this.$refs['top-news-mosaic']?.clientWidth *100 / window.screen.width < 33;
this.isSmallWidth = this.$refs && this.$refs['top-news-mosaic'] && this.$refs['top-news-mosaic']?.clientWidth < this.isSmallBreakpoint;
},
computed: {
isMobile() {
Expand Down

0 comments on commit 3372feb

Please sign in to comment.