Minor tweaks to user view

This commit is contained in:
Robin Ward 2013-10-16 16:22:16 -04:00
parent 2a8db38c7a
commit 7e9b119c9c
3 changed files with 17 additions and 1 deletions

View File

@ -16,7 +16,11 @@ Discourse.UserView = Discourse.View.extend({
if (username) { if (username) {
return Discourse.set('title', "" + (I18n.t("user.profile")) + " - " + username); return Discourse.set('title', "" + (I18n.t("user.profile")) + " - " + username);
} }
}.observes('user.loaded', 'user.username') }.observes('user.loaded', 'user.username'),
didInsertElement: function() {
window.scrollTo(0, 0);
}
}); });

View File

@ -161,12 +161,22 @@
img.avatar { img.avatar {
border: 3px solid #eee; border: 3px solid #eee;
margin-bottom: 4px; margin-bottom: 4px;
background-color: white;
} }
.primary { .primary {
margin-top: 30px; margin-top: 30px;
float: left; float: left;
width: 75%; width: 75%;
.bio {
color: #ddd;
a[href] {
color: #aae;
}
}
} }
.secondary { .secondary {

View File

@ -64,7 +64,9 @@
.avatar { .avatar {
float: left; float: left;
width: 45px; width: 45px;
background-color: white;
} }
nav.buttons { nav.buttons {
width: 180px; width: 180px;
padding: 0; padding: 0;