]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Improve playback speed style
authorChocobozzz <me@florianbigard.com>
Thu, 1 Mar 2018 12:02:09 +0000 (13:02 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 1 Mar 2018 12:02:09 +0000 (13:02 +0100)
client/src/sass/video-js-custom.scss
server/models/account/user.ts

index e87ae21ae9b1c59304b8df53820e0ca4835fe14f..f2251244ac5d9d176bbc626d2d7a297c8c4df66e 100644 (file)
@@ -220,8 +220,12 @@ $control-bar-height: 34px;
 
     .vjs-playback-rate {
       font-size: 10px;
-      margin-right: 60px;
-      margin-top: 2px;
+      margin-right: 48px;
+
+      .vjs-playback-rate-value {
+        font-size: 13px;
+        line-height: $control-bar-height;
+      }
     }
 
     .vjs-mute-control {
@@ -369,6 +373,10 @@ $control-bar-height: 34px;
       font-size: 5em;
     }
 
+    .vjs-playback-rate {
+      display: none;
+    }
+
     .vjs-peertube {
       padding: 0 !important;
 
index afa9d7be09519953571d351287ac82328eb5a748..8afd246b2c17dc6cc2d0ebae470e30f4b40e9d2a 100644 (file)
@@ -1,19 +1,36 @@
 import * as Sequelize from 'sequelize'
 import {
-  AllowNull, BeforeCreate, BeforeUpdate, Column, CreatedAt, DataType, Default, DefaultScope, HasMany, HasOne, Is, IsEmail, Model,
-  Scopes, Table, UpdatedAt
+  AllowNull,
+  BeforeCreate,
+  BeforeUpdate,
+  Column,
+  CreatedAt,
+  DataType,
+  Default,
+  DefaultScope,
+  HasMany,
+  HasOne,
+  Is,
+  IsEmail,
+  Model,
+  Scopes,
+  Table,
+  UpdatedAt
 } from 'sequelize-typescript'
 import { hasUserRight, USER_ROLE_LABELS, UserRight } from '../../../shared'
 import { User, UserRole } from '../../../shared/models/users'
 import {
-  isUserAutoPlayVideoValid, isUserDisplayNSFWValid, isUserPasswordValid, isUserRoleValid, isUserUsernameValid,
+  isUserAutoPlayVideoValid,
+  isUserDisplayNSFWValid,
+  isUserPasswordValid,
+  isUserRoleValid,
+  isUserUsernameValid,
   isUserVideoQuotaValid
 } from '../../helpers/custom-validators/users'
 import { comparePassword, cryptPassword } from '../../helpers/peertube-crypto'
 import { OAuthTokenModel } from '../oauth/oauth-token'
 import { getSort, throwIfNotValid } from '../utils'
 import { VideoChannelModel } from '../video/video-channel'
-import { VideoCommentModel } from '../video/video-comment'
 import { AccountModel } from './account'
 
 @DefaultScope({