mirror of
https://github.com/koel/koel
synced 2024-12-30 06:23:05 +00:00
21 lines
587 B
Vue
21 lines
587 B
Vue
<template>
|
|
<span v-if="isMobile.phone" class="text-orange" data-testid="controls-toggle" @click="$emit('toggleControls')">
|
|
<i v-if="showingControls" class="fa fa-angle-up toggle"/>
|
|
<i v-else class="fa fa-angle-down toggle"/>
|
|
</span>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import isMobile from 'ismobilejs'
|
|
import { toRefs } from 'vue'
|
|
|
|
const props = withDefaults(defineProps<{ showingControls?: boolean }>(), { showingControls: true })
|
|
const { showingControls } = toRefs(props)
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.toggle {
|
|
font-size: 1rem;
|
|
margin-left: 4px;
|
|
}
|
|
</style>
|