Fix subreddits not showing sidebars

This commit is contained in:
spikecodes 2021-01-11 16:44:31 -08:00
parent 6bbc90bc0d
commit 48d2943f72
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ pub async fn wiki(req: HttpRequest) -> HttpResponse {
// SUBREDDIT
async fn subreddit(sub: &str) -> Result<Subreddit, &'static str> {
// 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 {

View File

@ -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;