Skip to content

Commit

Permalink
added tooltip to zoom slider
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi-of-the-sea committed Jul 16, 2024
1 parent ab05d1a commit a0e8798
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 8 additions & 1 deletion packages/plugins/Zoom/src/components/Zoom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@
</template>
<span>{{ $t('common:plugins.zoom.out') }}</span>
</v-tooltip>
<ZoomSlider v-if="addZoomSlider"></ZoomSlider>
<v-tooltip left :disabled="hasSmallDisplay">
<template #activator="{ on, attrs }">
<div v-bind="attrs" v-on="on">
<ZoomSlider v-if="addZoomSlider"></ZoomSlider>
</div>
</template>
<span>{{ $t('common:plugins.zoom.slider') }}</span>
</v-tooltip>
</div>
</template>

Expand Down
1 change: 0 additions & 1 deletion packages/plugins/Zoom/src/components/ZoomSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
class="polar-zoom-slider"
:min="minimumZoomLevel"
:max="maximumZoomLevel"
:title="$t('common:plugins.zoom.slider')"
:aria-label="$t('common:plugins.zoom.slider')"
></v-slider>
</div>
Expand Down

0 comments on commit a0e8798

Please sign in to comment.