From 37c3d92b0e4605cdfee29ed011450860f3faf348 Mon Sep 17 00:00:00 2001 From: Ashley //// <iamashley@duck.com> Date: Thu, 1 Feb 2024 16:50:07 +0000 Subject: [PATCH] fix mobile :3 --- html/poketube.ejs | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/html/poketube.ejs b/html/poketube.ejs index 823f3f57..d733fc16 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -2129,6 +2129,10 @@ fetch(statsurl + "?browser=" + encodedBrowserName) text-decoration:underline; font-weight:bold } + + .video a { + text-decoration:none !important; +} summary{ color:gray; } @@ -2943,7 +2947,10 @@ More Epic options owo~ <% if (!f) { %> - <% inv_vid?.recommendedVideos.forEach(x => { %> + +<% if (inv_vid.recommendedVideos) { %> + +<% inv_vid?.recommendedVideos.forEach(x => { %> <div class="fade-in video"> <% if (!optout) { %><a class="thumbnail" href="/watch?v=<%= x.videoId %>" style="background-image:url(<%- media_proxy_url %>/proxy?url=https://vid.puffyan.us/vi/<%= x.videoId %>/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBy_x4UUHLNDZtJtH0PXeQGoRFTgw);border-radius:9.5px" alt="<%= x.Title %>"><span class="video-length"><%- turntomins(x.lengthSeconds) || "LIVE"%></span><% } %><% if (optout) { %><a class="thumbnail"href="/watch?v=<%= x.videoId %>&m=f"style="background-image:url(<%- media_proxy_url %>/proxy?url=https://vid.puffyan.us/vi/<%= x.videoId %>/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBy_x4UUHLNDZtJtH0PXeQGoRFTgw);border-radius:9.5px"alt="<%= x.Title %>"><span class="video-length"><%- x.duration || "LIVE"%></span><% } %></a> <div class="info"> @@ -2958,7 +2965,7 @@ More Epic options owo~ </a> <% } %> <div> - <a class="max-lines-2" href="/channel?id=<%= x.authorId %>@youtube.com" style="-webkit-line-clamp:1;width:12em;word-wrap:break-word;acolor:#fff"> + <a class="max-lines-2" href="/channel?id=<%= x.authorId %>@youtube.com" style="-webkit-line-clamp:1;width:12em;word-wrap:break-word;color:#fff;"> <%=x.author %> </a> <div class="video-views"> @@ -2969,7 +2976,39 @@ More Epic options owo~ </div> </div> <% }) %> + + + <% } %> + <% } %> + + <% if (inv_vid.recommendedVideos.length < 1) { %> + <% channel_uploads.latestVideos.forEach(x => { %> + <div class="fade-in video"> + <% if (!optout) { %><a class="thumbnail" href="/watch?v=<%= x.videoId %>" style="background-image:url(<%- media_proxy_url %>/proxy?url=https://vid.puffyan.us/vi/<%= x.videoId %>/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBy_x4UUHLNDZtJtH0PXeQGoRFTgw);border-radius:9.5px" alt="<%= x.Title %>"><span class="video-length"><%- turntomins(x.lengthSeconds) || "LIVE"%></span><% } %><% if (optout) { %><a class="thumbnail"href="/watch?v=<%= x.videoId %>&m=f"style="background-image:url(<%- media_proxy_url %>/proxy?url=https://vid.puffyan.us/vi/<%= x.videoId %>/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBy_x4UUHLNDZtJtH0PXeQGoRFTgw);border-radius:9.5px"alt="<%= x.Title %>"><span class="video-length"><%- x.duration || "LIVE"%></span><% } %></a> + <div class="info"> + <% if (!optout) { %> + <a class="max-lines-2 title" href="/watch?v=<%= x.videoId %>" style="font-stretch:ultra-expanded;font-weight:850" title="<%= x.Title %>"> + <%= x.title %> + </a> + <% } %> + <% if (optout) { %> + <a class="max-lines-2 title" href="/watch?v=<%= x.videoId %>&m=f" style="font-stretch:100%;font-weight:800" title="<%= x.Title %>"> + <%= x.title %> + </a> <% } %> + <div> + <a class="max-lines-2" href="/channel?id=<%= x.authorId %>@youtube.com" style="-webkit-line-clamp:1;width:12em;word-wrap:break-word;color:#fff"> + <%=x.author %> + </a> + <div class="video-views"> + + </div> + </div> + </div> + </div> + <% }) %> + <% } %> + <% if (f) { %>