- 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();
|
let mut ret: Vec<DirEntry> = Vec::new();
|
||||||
for entry in std::fs::read_dir(path)? {
|
for entry in std::fs::read_dir(path)? {
|
||||||
if let Ok(entry) = entry {
|
if let Ok(entry) = entry {
|
||||||
ret.push(entry)
|
if entry.path().is_dir() {
|
||||||
|
ret.push(entry)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Ok(ret);
|
return Ok(ret);
|
||||||
|
@ -22,6 +22,7 @@ a {
|
|||||||
padding: 0 2em;
|
padding: 0 2em;
|
||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
color: whitesmoke;
|
color: whitesmoke;
|
||||||
|
max-width: 1000px;
|
||||||
}
|
}
|
||||||
.video-gallery {
|
.video-gallery {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -40,6 +41,7 @@ a {
|
|||||||
}
|
}
|
||||||
video {
|
video {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
max-height: 80vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pure-form {
|
.pure-form {
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
<div id="layout">
|
<div id="layout">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1>{{title}}</h1>
|
<h1>{{title}}</h1>
|
||||||
<video width="1280" height="720" controls>
|
<video width="1280" height="720" controls autoplay>
|
||||||
<source src="{{clip_url}}" type="">
|
<source src="{{clip_url}}" type="">
|
||||||
wtf get a better browser 1d10t
|
wtf get a better browser 1d10t
|
||||||
</video>
|
</video>
|
||||||
|
Loading…
Reference in New Issue
Block a user