2022-04-15 14:24:30 +00:00
|
|
|
<template>
|
2022-04-15 17:00:08 +00:00
|
|
|
<span class="controls-toggler text-orange" v-if="isMobile.phone" @click="$emit('toggleControls')">
|
2022-04-15 14:24:30 +00:00
|
|
|
<i class="fa fa-angle-up toggler" v-if="showingControls"/>
|
|
|
|
<i class="fa fa-angle-down toggler" v-else/>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
2022-04-15 17:00:08 +00:00
|
|
|
<script lang="ts" setup>
|
2022-04-15 14:24:30 +00:00
|
|
|
import isMobile from 'ismobilejs'
|
2022-04-15 17:00:08 +00:00
|
|
|
import { toRefs } from 'vue'
|
2022-04-15 14:24:30 +00:00
|
|
|
|
2022-04-15 17:00:08 +00:00
|
|
|
const props = withDefaults(defineProps<{ showingControls: boolean }>(), { showingControls: true })
|
|
|
|
const { showingControls } = toRefs(props)
|
2022-04-15 14:24:30 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.toggler {
|
|
|
|
font-size: 1rem;
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
</style>
|