From 777ed756dcfd01845451937fb38559ee57ec44e9 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Mon, 23 Dec 2019 14:39:59 -0800 Subject: Channel: Change search results to use next and previous page buttons Because youtube doesn't give the number of search results, so previous behavior would give an error if a page number out of range was selected. --- youtube/static/shared.css | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'youtube/static/shared.css') diff --git a/youtube/static/shared.css b/youtube/static/shared.css index 2393bef..973f1db 100644 --- a/youtube/static/shared.css +++ b/youtube/static/shared.css @@ -298,6 +298,13 @@ body{ grid-auto-columns: 40px; grid-auto-flow: column; height: 40px; +} +.next-previous-button-row{ + margin: 10px 0px; + display: flex; + justify-self:center; + justify-content: center; + height: 40px; } .page-button{ background-color: var(--interface-color); @@ -305,6 +312,10 @@ body{ border-width: 2px; font-weight: bold; text-align: center; + padding: 5px; + } + .next-page:nth-child(2){ /* only if there's also a previous page button */ + margin-left: 10px; } .sort-button{ background-color: var(--interface-color); -- cgit v1.2.3