[web] Change cursor visuals when no operation is allowed on slider

The default cursor of the browser is now overridden by another icon from Material Design Icons.
This commit is contained in:
Alain Nussbaumer
2023-06-29 19:04:35 +02:00
parent 9556548fc7
commit 523f88cc0b
6 changed files with 37 additions and 21 deletions

View File

@@ -26,7 +26,10 @@
:class="{ 'is-inactive': !output.selected }"
max="100"
type="range"
:style="{ '--ratio': volume / 100 }"
:style="{
'--ratio': volume / 100,
'--cursor': $filters.cursor(this.cursor)
}"
@change="change_volume"
/>
</div>
@@ -37,6 +40,7 @@
</template>
<script>
import { mdiCancel } from '@mdi/js'
import webapi from '@/webapi'
export default {
@@ -46,7 +50,8 @@ export default {
data() {
return {
volume: this.output.selected ? this.output.volume : 0
volume: this.output.selected ? this.output.volume : 0,
cursor: mdiCancel
}
},