Skip to content

Commit

Permalink
fix: Mobile view of activity actions - meed-2275 (#2716)
Browse files Browse the repository at this point in the history
This change allows to hide the activity actions label when mobile view
  • Loading branch information
SaraBoutej authored Aug 14, 2023
1 parent 3ebf0cd commit 378ae98
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
<v-icon
:class="commentColorClass"
class="baseline-vertical-align mx-auto"
size="14">
:size="isMobile && '20' || '14'">
fa-comment
</v-icon>
<span class="mx-auto mt-1 mt-lg-0 ms-lg-2">
<span v-if="!isMobile" class="mx-auto mt-1 mt-lg-0 ms-lg-2">
{{ $t('UIActivity.label.Comment') }}
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<v-icon
:class="likeColorClass"
class="baseline-vertical-align"
size="14">
:size="isMobile && '20' || '14'">
fa-thumbs-up
</v-icon>
<span class="mx-auto mt-1 mt-lg-0 ms-lg-2">
<span v-if="!isMobile" class="mx-auto mt-1 mt-lg-0 ms-lg-2">
{{ $t('UIActivity.msg.LikeActivity') }}
</span>
</div>
Expand Down Expand Up @@ -59,6 +59,9 @@ export default {
likeButtonTitle() {
return this.hasLiked && this.$t('UIActivity.msg.UnlikeActivity') || this.$t('UIActivity.msg.LikeActivity');
},
isMobile() {
return this.$vuetify.breakpoint.name === 'sm' || this.$vuetify.breakpoint.name === 'xs';
},
},
created() {
this.computeLikes();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<v-icon
:class="shareIconColorClass"
class="me-lg-1 baseline-vertical-align"
size="14">
:size="isMobile && '20' || '14'">
fa-share
</v-icon>
<span class="mx-auto mt-1 mt-lg-0 ms-lg-2">
<span v-if="!isMobile" class="mx-auto mt-1 mt-lg-0 ms-lg-2">
{{ $t('UIActivity.share') }}
</span>
</div>
Expand Down

0 comments on commit 378ae98

Please sign in to comment.