From 48d2943f72353cb69edebd4d93f6d39dfb62bb9a Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Mon, 11 Jan 2021 16:44:31 -0800 Subject: [PATCH] Fix subreddits not showing sidebars --- src/subreddit.rs | 2 +- static/style.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/subreddit.rs b/src/subreddit.rs index ac0813b..fe5d5e4 100644 --- a/src/subreddit.rs +++ b/src/subreddit.rs @@ -86,7 +86,7 @@ pub async fn wiki(req: HttpRequest) -> HttpResponse { // SUBREDDIT async fn subreddit(sub: &str) -> Result { // Build the Reddit JSON API url - let path: String = format!("r/{}/about.json?raw_json=1", sub); + let path: String = format!("/r/{}/about.json?raw_json=1", sub); // Send a request to the url match request(&path).await { diff --git a/static/style.css b/static/style.css index e9dd580..fc5a7ff 100644 --- a/static/style.css +++ b/static/style.css @@ -477,7 +477,7 @@ input[type="submit"]:hover { color: var(--accent); } overflow: hidden; white-space: nowrap; text-align: center; - background-color: rgba(0,0,0,0.8); + background-color: rgba(0,0,0,0.6); color: white; grid-area: 1 / 1 / 2 / 2; padding: 5px;