Fix #86 - resolve layout breaking on zoom-out on accounts grid

lolsob-rspec
Eugen Rochko 2016-12-26 18:48:33 +01:00
parent 4afc13868b
commit d253b0dec6
3 changed files with 5 additions and 7 deletions

View File

@ -283,8 +283,6 @@
} }
.name { .name {
width: 333-20-60-15px;
float: left;
padding-top: 10px; padding-top: 10px;
a { a {

View File

@ -49,13 +49,13 @@ class ApplicationController < ActionController::Base
def not_found def not_found
respond_to do |format| respond_to do |format|
format.any { head 404 } format.any { head 404 }
end end
end end
def gone def gone
respond_to do |format| respond_to do |format|
format.any { head 410 } format.any { head 410 }
end end
end end

View File

@ -20,12 +20,12 @@
.counter{ class: active_nav_class(account_url(@account)) } .counter{ class: active_nav_class(account_url(@account)) }
= link_to account_url(@account) do = link_to account_url(@account) do
%span.counter-label= t('accounts.posts') %span.counter-label= t('accounts.posts')
%span.counter-number= @account.statuses.count %span.counter-number= number_with_delimiter @account.statuses.count
.counter{ class: active_nav_class(following_account_url(@account)) } .counter{ class: active_nav_class(following_account_url(@account)) }
= link_to following_account_url(@account) do = link_to following_account_url(@account) do
%span.counter-label= t('accounts.following') %span.counter-label= t('accounts.following')
%span.counter-number= @account.following.count %span.counter-number= number_with_delimiter @account.following.count
.counter{ class: active_nav_class(followers_account_url(@account)) } .counter{ class: active_nav_class(followers_account_url(@account)) }
= link_to followers_account_url(@account) do = link_to followers_account_url(@account) do
%span.counter-label= t('accounts.followers') %span.counter-label= t('accounts.followers')
%span.counter-number= @account.followers.count %span.counter-number= number_with_delimiter @account.followers.count