- No more grabbing no directory entries in categories

+ Better video sizing
This commit is contained in:
shockrah 2021-10-17 21:26:04 -07:00
parent 501916cb57
commit 7f9ff9bb65
3 changed files with 6 additions and 2 deletions

View File

@ -26,9 +26,11 @@ 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 {
if entry.path().is_dir() {
ret.push(entry)
}
}
}
return Ok(ret);
}

View File

@ -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 {

View File

@ -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>