More minor UI tweaks

This commit is contained in:
James Mills 2020-03-28 23:08:36 +10:00
parent 592d811d5d
commit 9b159b32cb
No known key found for this signature in database
GPG key ID: AC4C014F1440EBD6
3 changed files with 16 additions and 11 deletions

File diff suppressed because one or more lines are too long

View file

@ -134,7 +134,12 @@ main {
} }
#playlist > a > div > h1 { #playlist > a > div > h1 {
white-space: normal; white-space: normal;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
} }
#playlist > a > div > h2 { #playlist > a > div > h2 {

View file

@ -17,7 +17,7 @@
<source src="/v/{{ $playing.ID }}.mp4?quality={{ $.Quality }}" type="video/mp4" /> <source src="/v/{{ $playing.ID }}.mp4?quality={{ $.Quality }}" type="video/mp4" />
</video> </video>
<h1>{{ $playing.Title }}</h1> <h1>{{ $playing.Title }}</h1>
<h2>{{ $playing.Views }} views • {{ $playing.Modified }}<br />{{ $playing.Size | bytes }}</h2> <h2>{{ $playing.Views }} views • {{ $playing.Modified }}{{ $playing.Size | bytes }}</h2>
<p>{{ $playing.Description }}</p> <p>{{ $playing.Description }}</p>
{{ else }} {{ else }}
<video id="video" controls></video> <video id="video" controls></video>
@ -39,7 +39,7 @@
<img src="/t/{{ $m.ID }}"> <img src="/t/{{ $m.ID }}">
<div> <div>
<h1>{{ $m.Title }}</h1> <h1>{{ $m.Title }}</h1>
<h2>{{ $m.Views }} views • {{ $m.Modified }}<br />{{ $m.Size | bytes }}</h2> <h2>{{ $m.Views }} views • {{ $m.Modified }}</h2>
</div> </div>
</a> </a>
{{ end }} {{ end }}