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;