diff --git a/app/assets/stylesheets/thredded-overrides.scss b/app/assets/stylesheets/thredded-overrides.scss index 2213a875..d49e36f6 100644 --- a/app/assets/stylesheets/thredded-overrides.scss +++ b/app/assets/stylesheets/thredded-overrides.scss @@ -1,13 +1,17 @@ @import "thredded"; #thredded--container { - #q /* search input */ { - padding-left: 16px; - } + .thredded--navigation--search { + margin-top: 4.5em; - @media only screen and (min-width: 600px) { #q /* search input */ { - height: 19px; + padding-left: 16px; + } + + @media only screen and (min-width: 600px) { + #q /* search input */ { + height: 19px; + } } } @@ -15,18 +19,33 @@ margin-top: 0.4em; padding-left: 0.1em; overflow: hidden; - min-height: 5em; + min-height: 3em; max-height: 60px; + width: 50%; + + li { + display: inline !important; + float: left; + padding-right: 4px; + margin-right: 8px; + } + li a { padding: 0; line-height: 2rem; } } + .thredded--scoped-navigation { + left: 1rem; + top: 1rem; + } + .thredded--scoped-navigation li a { padding: 0; line-height: 2rem; + float: left; } .thredded--user-navigation { @@ -34,6 +53,13 @@ margin: 1rem; border-bottom: 0; + @media only screen and (max-width: 600px) { + .thredded--user-navigation--item { + padding-top: 0.5rem; + padding-right: 0.5rem; + } + } + .thredded--user-navigation--item a { padding: 8px 4px; line-height: 2rem; diff --git a/app/views/thredded/shared/_nav.html.erb b/app/views/thredded/shared/_nav.html.erb new file mode 100644 index 00000000..a660fbb3 --- /dev/null +++ b/app/views/thredded/shared/_nav.html.erb @@ -0,0 +1,26 @@ +<%= yield :thredded_breadcrumbs %> + + \ No newline at end of file diff --git a/app/views/thredded/users/_badge.html.erb b/app/views/thredded/users/_badge.html.erb index ad3530da..5abdd866 100644 --- a/app/views/thredded/users/_badge.html.erb +++ b/app/views/thredded/users/_badge.html.erb @@ -15,7 +15,7 @@ <% if user.respond_to?(:selected_billing_plan_id) %> <% if user.id == 5 %> - <%= badge_text.presence + 'Admin' %> + <%= badge_text.presence || 'Admin' %> <% elsif user.selected_billing_plan_id == 2 %> <%= badge_text.presence || 'Beta Tester' %> <% elsif user.selected_billing_plan_id == 3 %>