Make the "Load more" button center-aligned and give it "button" styling

Fixes #107
This commit is contained in:
Dominik M. Kwiatek 2020-05-29 19:37:47 +01:00 committed by Andreas Nedbal
parent f9a79acc8a
commit ee947f2428
9 changed files with 28 additions and 18 deletions

View File

@ -8,5 +8,7 @@
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @inbox_last_id
- if @more_data_available
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @inbox_last_id } }
= t 'views.actions.load'
.d-flex.justify-content-center
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @inbox_last_id } }
= t 'views.actions.load'

View File

@ -5,8 +5,9 @@
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @timeline_last_id
- if @more_data_available
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @timeline_last_id } }
= t 'views.actions.load'
.d-flex.justify-content-center
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @timeline_last_id } }
= t 'views.actions.load'
- provide(:title, list_title(@list))
- parent_layout 'feed'

View File

@ -19,5 +19,6 @@
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @notifications_last_id, permitted_params: %i[type]
- if @more_data_available
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @notifications_last_id } }
Load more
.d-flex.justify-content-center
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @notifications_last_id } }
= t 'views.actions.load'

View File

@ -5,8 +5,9 @@
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @timeline_last_id
- if @more_data_available
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @timeline_last_id } }
Load more
.d-flex.justify-content-center
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @timeline_last_id } }
= t 'views.actions.load'
- provide(:title, generate_title('Public Timeline'))
- parent_layout 'feed'

View File

@ -9,8 +9,9 @@
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @answers_last_id
- if @more_data_available
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @answers_last_id } }
Load more
.d-flex.justify-content-center
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @answers_last_id } }
= t 'views.actions.load'
- if user_signed_in? && !current_user.answered?(@question) && current_user != @question.user && @question.user&.privacy_allow_stranger_answers
.card#q-answer-box

View File

@ -5,8 +5,9 @@
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @timeline_last_id
- if @more_data_available
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @timeline_last_id } }
Load more
.d-flex.justify-content-center
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @timeline_last_id } }
= t 'views.actions.load'
- provide(:title, APP_CONFIG['site_name'])
- parent_layout 'feed'

View File

@ -5,8 +5,9 @@
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @questions_last_id
- if @more_data_available
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @questions_last_id } }
= t 'views.actions.load'
.d-flex.justify-content-center
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @questions_last_id } }
= t 'views.actions.load'
- provide(:title, questions_title(@user))
- parent_layout 'user/profile'

View File

@ -6,8 +6,9 @@
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @answers_last_id
- if @more_data_available
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @answers_last_id } }
= t 'views.actions.load'
.d-flex.justify-content-center
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @answers_last_id } }
= t 'views.actions.load'
- provide(:title, user_title(@user))
- parent_layout 'user/profile'

View File

@ -6,8 +6,9 @@
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @users_last_id
- if @more_data_available
%button.btn.btn-default#load-more-btn{ type: :button, data: { last_id: @users_last_id } }
= t 'views.actions.load'
.d-flex.justify-content-center
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @users_last_id } }
= t 'views.actions.load'
- provide(:title, user_title(@user, 'friends and followers'))
- parent_layout 'user/profile'