- No more grabbing no directory entries in categories
+ Better video sizing
This commit is contained in:
parent
501916cb57
commit
7f9ff9bb65
@ -26,7 +26,9 @@ pub fn get_category_dirs(path: &str) -> std::io::Result<Vec<DirEntry>> {
|
||||
let mut ret: Vec<DirEntry> = Vec::new();
|
||||
for entry in std::fs::read_dir(path)? {
|
||||
if let Ok(entry) = entry {
|
||||
ret.push(entry)
|
||||
if entry.path().is_dir() {
|
||||
ret.push(entry)
|
||||
}
|
||||
}
|
||||
}
|
||||
return Ok(ret);
|
||||
|
@ -22,6 +22,7 @@ a {
|
||||
padding: 0 2em;
|
||||
line-height: 1.6em;
|
||||
color: whitesmoke;
|
||||
max-width: 1000px;
|
||||
}
|
||||
.video-gallery {
|
||||
display: flex;
|
||||
@ -40,6 +41,7 @@ a {
|
||||
}
|
||||
video {
|
||||
max-width: 100%;
|
||||
max-height: 80vh;
|
||||
}
|
||||
|
||||
.pure-form {
|
||||
|
@ -22,7 +22,7 @@
|
||||
<div id="layout">
|
||||
<div class="content">
|
||||
<h1>{{title}}</h1>
|
||||
<video width="1280" height="720" controls>
|
||||
<video width="1280" height="720" controls autoplay>
|
||||
<source src="{{clip_url}}" type="">
|
||||
wtf get a better browser 1d10t
|
||||
</video>
|
||||
|
Loading…
Reference in New Issue
Block a user