From dcb314d9a5e14ecd5288692bc783b7237f5f1034 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 26 Apr 2020 23:54:02 +0200 Subject: [PATCH] Adjust footer link visibilty to work with Bootstrap 4 --- app/views/layouts/feed.haml | 2 +- app/views/tabs/_moderation.haml | 4 +++- app/views/tabs/_notifications.haml | 4 +++- app/views/tabs/_settings.haml | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/views/layouts/feed.haml b/app/views/layouts/feed.haml index a6400fa7..25701108 100644 --- a/app/views/layouts/feed.haml +++ b/app/views/layouts/feed.haml @@ -6,4 +6,4 @@ .col-md-9.col-xs-12.col-sm-8 = render 'layouts/messages' = yield - .visible-xs= render 'shared/links' \ No newline at end of file + .d-block.d-sm-none= render 'shared/links' \ No newline at end of file diff --git a/app/views/tabs/_moderation.haml b/app/views/tabs/_moderation.haml index d8c83463..180922c7 100644 --- a/app/views/tabs/_moderation.haml +++ b/app/views/tabs/_moderation.haml @@ -5,4 +5,6 @@ = list_group_item t('views.general.comment').pluralize(2), moderation_path('comment') = list_group_item t('views.general.user').pluralize(2), moderation_path('user') = list_group_item t('views.general.question').pluralize(2), moderation_path('question') - = list_group_item 'Priority', moderation_priority_path \ No newline at end of file + = list_group_item 'Priority', moderation_priority_path + +.d-none.d-sm-block= render "shared/links" \ No newline at end of file diff --git a/app/views/tabs/_notifications.haml b/app/views/tabs/_notifications.haml index 983d3ae7..d282b911 100644 --- a/app/views/tabs/_notifications.haml +++ b/app/views/tabs/_notifications.haml @@ -11,4 +11,6 @@ = list_group_item t('views.notifications.tabs.smile'), notifications_path('smile'), badge: Notification.for(current_user).where(target_type: "Smile", new: true).count = list_group_item t('views.notifications.tabs.comment'), notifications_path('comment'), badge: Notification.for(current_user).where(target_type: "Comment", new: true).count = list_group_item t('views.notifications.tabs.commentsmile'), notifications_path('commentsmile'), badge: Notification.for(current_user).where(target_type: "CommentSmile", new: true).count - = list_group_item t('views.notifications.tabs.relationship'), notifications_path('relationship'), badge: Notification.for(current_user).where(target_type: "Relationship", new: true).count \ No newline at end of file + = list_group_item t('views.notifications.tabs.relationship'), notifications_path('relationship'), badge: Notification.for(current_user).where(target_type: "Relationship", new: true).count + +.d-none.d-sm-block= render "shared/links" \ No newline at end of file diff --git a/app/views/tabs/_settings.haml b/app/views/tabs/_settings.haml index 9eceb89a..a3b91589 100644 --- a/app/views/tabs/_settings.haml +++ b/app/views/tabs/_settings.haml @@ -8,4 +8,4 @@ = list_group_item "Your Data", user_data_path = list_group_item 'Export', user_export_path -.hidden-xs= render "shared/links" \ No newline at end of file +.d-none.d-sm-block= render "shared/links" \ No newline at end of file