diff --git a/static/style.css b/static/style.css index e402854..e3eb6bd 100644 --- a/static/style.css +++ b/static/style.css @@ -35,7 +35,7 @@ nav { background: var(--outside); padding: 5px 15px; font-size: 20px; - height: 40px; + min-height: 40px; } nav #lib, nav #github, nav #version { color: white; } @@ -198,7 +198,7 @@ input[type="submit"]:hover { color: var(--accent); } #search_sort { background: var(--highlighted); border-radius: 5px; - overflow: hidden; + overflow: auto; } #search_sort > #search { @@ -230,7 +230,7 @@ input[type="submit"]:hover { color: var(--accent); } box-shadow: var(--black-contrast); background: var(--outside); display: flex; - overflow: hidden; + overflow: auto; } #sort_options > a, footer > a { @@ -571,7 +571,8 @@ td, th { max-width: 100%; } - #user, #sidebar { - margin: 20px 0; - } + #user, #sidebar { margin: 20px 0; } + #logo { margin: 5px auto; } + #searchbox { width: 100%; } + #github { display: none; } } \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index ec9099f..88f4e5f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -14,7 +14,7 @@ diff --git a/templates/subreddit.html b/templates/subreddit.html index 76854af..bb1b3a4 100644 --- a/templates/subreddit.html +++ b/templates/subreddit.html @@ -1,7 +1,10 @@ {% extends "base.html" %} {% import "utils.html" as utils %} -{% block title %}r/{{ sub.name }}: {{ sub.description }}{% endblock %} +{% block title %} + {% if sub.name != "" %}r/{{ sub.name }}: {{ sub.description }} + {% else %}Libreddit{% endif %} +{% endblock %} {% block search %} {% call utils::search(["/r/", sub.name.as_str()].concat(), "") %}