Skip to content

Commit

Permalink
refactor: show share button label on bigger screens. ref #199
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Apr 11, 2024
1 parent 258c0fe commit f86c2a0
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/components/ShareButton.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<v-btn
v-if="!$vuetify.display.smAndUp"
class="ml-2"
size="small"
density="comfortable"
Expand All @@ -8,12 +9,24 @@
:title="$t('ShareButton.Title')"
@click="shareViaWebShare">
</v-btn>
<v-btn
v-else
class="ml-2"
size="small"
rounded="xl"
color="teal"
prepend-icon="mdi-share-variant"
:title="$t('ShareButton.Title')"
@click="shareViaWebShare">
{{ $t('ShareButton.Title') }}
</v-btn>

<v-snackbar
v-model="shareLinkCopySuccessMessage"
color="success"
:timeout="2000"
>{{ $t('ShareButton.LinkCopySuccess') }}</v-snackbar>
:timeout="2000">
{{ $t('ShareButton.LinkCopySuccess') }}
</v-snackbar>
</template>

<script>
Expand Down

0 comments on commit f86c2a0

Please sign in to comment.