From de1e0345df333c2ce4d9446ce1be44030bc2d56c Mon Sep 17 00:00:00 2001 From: Jeff Atwood <jatwood@codinghorror.com> Date: Mon, 25 Aug 2014 12:55:45 -0700 Subject: [PATCH] proper fix for top page bottom buttons on mobile --- .../templates/mobile/discovery/topics.js.handlebars | 1 + app/assets/stylesheets/mobile/buttons.scss | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/app/assets/javascripts/discourse/templates/mobile/discovery/topics.js.handlebars b/app/assets/javascripts/discourse/templates/mobile/discovery/topics.js.handlebars index 7a89824ff..a76edca86 100644 --- a/app/assets/javascripts/discourse/templates/mobile/discovery/topics.js.handlebars +++ b/app/assets/javascripts/discourse/templates/mobile/discovery/topics.js.handlebars @@ -46,6 +46,7 @@ {{#if top}} <h3> {{#link-to "discovery.categories"}}{{i18n topic.browse_all_categories}}{{/link-to}}, {{#link-to 'discovery.latest'}}{{i18n topic.view_latest_topics}}{{/link-to}} {{i18n or}} {{i18n filters.top.other_periods}} + <br/> {{top-period-buttons period=period}} </h3> {{else}} diff --git a/app/assets/stylesheets/mobile/buttons.scss b/app/assets/stylesheets/mobile/buttons.scss index e69de29bb..8a30ba692 100644 --- a/app/assets/stylesheets/mobile/buttons.scss +++ b/app/assets/stylesheets/mobile/buttons.scss @@ -0,0 +1,5 @@ +h3 .top-title-buttons button { + margin-right: 10px; + clear: both; + margin-top: 5px; +} \ No newline at end of file