From 0592564264fff57ccfd9677957196951f9f1c6cf Mon Sep 17 00:00:00 2001 From: RblSb Date: Sun, 26 Jan 2025 23:22:33 +0300 Subject: Video upload feature And you can play video as soon as upload starts! This is pretty useful for thicc ones. Video will be keeped in cache and will comply cache size limit. I'm also implemented system storage check to change cache limit if it's lower than config value, so upload will be blocked if there is lower than 10MiB available on disk. --- res/css/des.css | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'res/css/des.css') diff --git a/res/css/des.css b/res/css/des.css index 8c7f0cc..d6cd5ed 100644 --- a/res/css/des.css +++ b/res/css/des.css @@ -423,7 +423,7 @@ header h4 { background: var(--background-video); } - .info { + .video-info { order: 2; } @@ -480,6 +480,8 @@ iframe#videoplayer { /* Playlist */ #playlist { + display: flex; + flex-direction: column; border-top: .063rem solid; border-color: var(--border); } @@ -527,8 +529,25 @@ iframe#videoplayer { flex-grow: 1; } -#mediaurl { +.mediaurl-wrap { + display: flex; flex-grow: 2; + position: relative; +} + +#mediaurl { + display: flex; + flex: 1; + padding-right: 2rem; +} + +#mediaurl-upload { + display: flex; + position: absolute; + right: 0.1rem; + top: 50%; + transform: translateY(-50%); + background: transparent; } #customembed>*>input, @@ -682,6 +701,7 @@ footer#footer { } #userlisttoggle { + padding: 0; overflow: hidden; white-space: nowrap; text-align: left; -- cgit v1.2.3