myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3347] trunk: Fixed avatar alignment


From: noreply
Subject: [myexperiment-hackers] [3347] trunk: Fixed avatar alignment
Date: Thu, 24 Jan 2013 15:17:08 +0000 (UTC)

Revision
3347
Author
fbacall
Date
2013-01-24 15:17:07 +0000 (Thu, 24 Jan 2013)

Log Message

Fixed avatar alignment

Modified Paths

Diff

Modified: trunk/app/views/users/_avatar.rhtml (3346 => 3347)


--- trunk/app/views/users/_avatar.rhtml	2013-01-24 15:10:30 UTC (rev 3346)
+++ trunk/app/views/users/_avatar.rhtml	2013-01-24 15:17:07 UTC (rev 3347)
@@ -1,7 +1,7 @@
 <% size ||= 100 -%>
 <% you_string ||= "" -%>
 <% if user.kind_of? Fixnum then user = User.find(user) end -%>
-<div class="avatar">
+<div class="avatar" style="width: <%= size+6 %>px">
 	<%= avatar(user, size) %>
 	<span style="display:block;margin-top:2px;text-align:center;">
 		<% if size > 59 %>

Modified: trunk/public/stylesheets/styles.css (3346 => 3347)


--- trunk/public/stylesheets/styles.css	2013-01-24 15:10:30 UTC (rev 3346)
+++ trunk/public/stylesheets/styles.css	2013-01-24 15:17:07 UTC (rev 3347)
@@ -2451,4 +2451,5 @@
 div.avatar {
   text-align:center;
   padding: 0.2em 0;
+  margin: 0 auto;
 }
\ No newline at end of file

reply via email to

[Prev in Thread] Current Thread [Next in Thread]