Improving account grid cards layout for longer usernames and notes

master
Eugen Rochko 9 years ago
parent 71ae4dd3d2
commit 5d72b92271
  1. 3
      app/assets/stylesheets/accounts.scss
  2. 2
      app/views/accounts/_grid_card.html.haml

@ -227,9 +227,12 @@
} }
.name { .name {
width: 333-20-60-15px;
float: left;
padding-top: 10px; padding-top: 10px;
a { a {
display: block;
color: #282c37; color: #282c37;
text-decoration: none; text-decoration: none;

@ -5,4 +5,4 @@
= link_to url_for_target(account) do = link_to url_for_target(account) do
%span.display_name= display_name(account) %span.display_name= display_name(account)
%span.username= "@#{account.acct}" %span.username= "@#{account.acct}"
%p.note= account.note %p.note= truncate(account.note, length: 124)

Loading…
Cancel
Save