From e2d8bd2b73d7d3580fc432973ab44bd760a44de7 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sun, 5 Nov 2017 11:59:15 +1100 Subject: Captions language fix --- src/js/captions.js | 2 +- src/less/components/badges.less | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/js/captions.js b/src/js/captions.js index c5b45b40..36a1775b 100644 --- a/src/js/captions.js +++ b/src/js/captions.js @@ -127,7 +127,7 @@ const captions = { // If we change the active track while a cue is already displayed we need to update it if (this.captions.currentTrack.activeCues && this.captions.currentTrack.activeCues.length > 0) { - controls.setCue.call(this, this.captions.currentTrack); + captions.setCue.call(this, this.captions.currentTrack); } } } else if (this.type === 'vimeo' && this.captions.active) { diff --git a/src/less/components/badges.less b/src/less/components/badges.less index 398cb56d..94035e9b 100644 --- a/src/less/components/badges.less +++ b/src/less/components/badges.less @@ -3,10 +3,11 @@ // -------------------------------------------------------------- .plyr__badge { - padding: 1px 4px; + padding: 0 4px; border-radius: 2px; background: @plyr-menu-color; color: @plyr-menu-bg; font-size: @plyr-font-size-tiny; + line-height: 1.5; .plyr-font-smoothing(on); } -- cgit v1.2.3