commit: 5d72b922715e04f620026598624f6898e0f267c3
parent: 71ae4dd3d2dbafc1ef6e7716c379d01ea194aafe
Author: Eugen Rochko <eugen@zeonfederated.com>
Date: Sat, 19 Mar 2016 14:11:09 +0100
Improving account grid cards layout for longer usernames and notes
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/app/assets/stylesheets/accounts.scss b/app/assets/stylesheets/accounts.scss
@@ -227,9 +227,12 @@
}
.name {
+ width: 333-20-60-15px;
+ float: left;
padding-top: 10px;
a {
+ display: block;
color: #282c37;
text-decoration: none;
diff --git a/app/views/accounts/_grid_card.html.haml b/app/views/accounts/_grid_card.html.haml
@@ -5,4 +5,4 @@
= link_to url_for_target(account) do
%span.display_name= display_name(account)
%span.username= "@#{account.acct}"
- %p.note= account.note
+ %p.note= truncate(account.note, length: 124)