Skip to content

Commit

Permalink
Make autoplay text fit inside top bar when translated (#1767)
Browse files Browse the repository at this point in the history
* Make autoplay fit inside top bar when translated

* Lint
  • Loading branch information
Airidasz authored Oct 3, 2021
1 parent 35ae762 commit c2c6a55
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@
}

.autoPlayToggle {
width: 120px;
position: absolute;
top: 10px;
right: 0px;
display: flex;
justify-content: flex-end;
align-items: center;
}

.VideoRecommendationsTopBar{
display:flex;
justify-content:space-between;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
v-if="!hideRecommendedVideos"
class="relative watchVideoRecommendations"
>
<h3>
{{ $t("Up Next") }}
</h3>
<ft-toggle-switch
v-if="showAutoplay"
class="autoPlayToggle"
:label="$t('Video.Autoplay')"
:compact="true"
:default-value="playNextVideo"
@change="updatePlayNextVideo"
/>
<div class="VideoRecommendationsTopBar">
<h3>
{{ $t("Up Next") }}
</h3>
<ft-toggle-switch
v-if="showAutoplay"
class="autoPlayToggle"
:label="$t('Video.Autoplay')"
:compact="true"
:default-value="playNextVideo"
@change="updatePlayNextVideo"
/>
</div>
<ft-list-video
v-for="(video, index) in data"
:key="index"
Expand Down

0 comments on commit c2c6a55

Please sign in to comment.