From 96ff516e097ed24d61b1ec359204eec32cac9b4b Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Wed, 6 Jun 2018 21:16:29 -0400 Subject: [PATCH] Adjust user header style (#398) * Fix height issue on user profile header * Adjust user header style --- app/views/articles/_user_metadata.html.erb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/articles/_user_metadata.html.erb b/app/views/articles/_user_metadata.html.erb index ed793fad9..f53e5c5df 100644 --- a/app/views/articles/_user_metadata.html.erb +++ b/app/views/articles/_user_metadata.html.erb @@ -38,9 +38,15 @@ <% end %> <% else %> - <% if @user.email_public && @user.employer_name.present? && @user.location.present? && @user.education.present? %> + <% if @user.email_public && + @user.employer_name.present? && + @user.location.present? && + @user.education.present? && + @user.education.size > 25 && + @user.summary.to_s.size < 145 + %> <% end %> <% if @user.email_public %>