only show shortcut button when screen width is < 768px

This commit is contained in:
alectrocute 2020-07-12 23:18:24 -07:00
parent 3953f3f2c4
commit f16f550204

View File

@ -29,7 +29,7 @@
<ul v-if="!fullscreen" class="video-menu"> <ul v-if="!fullscreen" class="video-menu">
<li><i @click.stop.prevent="requestFullscreen" class="fas fa-expand"></i></li> <li><i @click.stop.prevent="requestFullscreen" class="fas fa-expand"></i></li>
<li v-if="admin"><i @click.stop.prevent="onResolution" class="fas fa-desktop"></i></li> <li v-if="admin"><i @click.stop.prevent="onResolution" class="fas fa-desktop"></i></li>
<li> <li class="request-control">
<i <i
:class="[hosted && !hosting ? 'disabled' : '', !hosted && !hosting ? 'faded' : '', 'fas', 'fa-keyboard']" :class="[hosted && !hosting ? 'disabled' : '', !hosted && !hosting ? 'faded' : '', 'fas', 'fa-keyboard']"
@click.stop.prevent="toggleControl" @click.stop.prevent="toggleControl"
@ -79,6 +79,16 @@
color: rgba($color: $style-error, $alpha: 0.4); color: rgba($color: $style-error, $alpha: 0.4);
} }
} }
&.request-control {
display: none;
}
@media (max-width: 768px) {
&.request-control {
display: inline-block;
}
}
} }
} }