More minor UI tweaks

This commit is contained in:
James Mills 2020-03-28 20:49:09 +10:00
parent 668f6cba15
commit 6c50fb31e0
No known key found for this signature in database
GPG key ID: AC4C014F1440EBD6
5 changed files with 105 additions and 105 deletions

File diff suppressed because one or more lines are too long

2
static/import.css vendored
View file

@ -1,7 +1,7 @@
.import-container { .import-container {
display: inline-block; display: inline-block;
max-width: 100%; max-width: 100%;
margin-top: 50px; margin-top: 10px;
} }
.import-wrapper { .import-wrapper {

View file

@ -95,7 +95,7 @@ main {
display: inline-block; display: inline-block;
margin-left: 10px; margin-left: 10px;
width: 290px; width: 290px;
height: 543px; height: 607px;;
background: #282a2e; background: #282a2e;
box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.2); box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.2);
overflow-x: hidden; overflow-x: hidden;

View file

@ -1,7 +1,7 @@
.upload-container { .upload-container {
display: inline-block; display: inline-block;
max-width: 100%; max-width: 100%;
margin-top: 50px; margin-top: 10px;
} }
.upload-wrapper { .upload-wrapper {

View file

@ -1,6 +1,7 @@
{{ define "content" }} {{ define "content" }}
{{ $playing := .Playing }} {{ $playing := .Playing }}
<div class="topnav" id="myTopnav"> <div id="player">
<div class="topnav" id="myTopnav">
<a href="javascript:void(0);" class="icon" onclick="myFunction()"> <a href="javascript:void(0);" class="icon" onclick="myFunction()">
<i class="fa fa-cogs"></i> <i class="fa fa-cogs"></i>
</a> </a>
@ -9,9 +10,8 @@
<a {{ if eq $.Quality "480p" }}class="active"{{ end }} href="/v/{{ $playing.ID }}?quality=480p">480p</a> <a {{ if eq $.Quality "480p" }}class="active"{{ end }} href="/v/{{ $playing.ID }}?quality=480p">480p</a>
<a {{ if eq $.Quality "360p" }}class="active"{{ end }} href="/v/{{ $playing.ID }}?quality=360p">360p</a> <a {{ if eq $.Quality "360p" }}class="active"{{ end }} href="/v/{{ $playing.ID }}?quality=360p">360p</a>
<a {{ if eq $.Quality "240p" }}class="active"{{ end }} href="/v/{{ $playing.ID }}?quality=240p">240p</a> <a {{ if eq $.Quality "240p" }}class="active"{{ end }} href="/v/{{ $playing.ID }}?quality=240p">240p</a>
</div> </div>
<div id="player">
{{ if $playing.ID }} {{ if $playing.ID }}
<video id="video" controls preload="metadata" poster="/t/{{ $playing.ID}}"> <video id="video" controls preload="metadata" poster="/t/{{ $playing.ID}}">
<source src="/v/{{ $playing.ID }}.mp4?quality={{ $.Quality }}" type="video/mp4" /> <source src="/v/{{ $playing.ID }}.mp4?quality={{ $.Quality }}" type="video/mp4" />