Fixing size of profile photos to reduce jumpiness when switching between profiles.

This commit is contained in:
Samuel Clay 2012-05-14 16:50:38 -07:00
parent 9d169f0b97
commit 61e70d80ec
2 changed files with 6 additions and 1 deletions

View file

@ -7707,6 +7707,11 @@ form.opml_import_form input {
max-height: 48px;
border-radius: 3px;
}
.NB-profile-badge.NB-profile-badge-embiggen .NB-profile-badge-photo-wrapper {
width: 108px;
height: 108px;
vertical-align: middle;
}
.NB-profile-badge.NB-profile-badge-embiggen .NB-profile-badge-photo img {
max-width: 108px;
max-height: 108px;

View file

@ -29,7 +29,7 @@ NEWSBLUR.Views.SocialProfileBadge = Backbone.View.extend({
var profile = this.model;
this.$el.html($.make('table', {}, [
$.make('tr', [
$.make('td', [
$.make('td', { className: 'NB-profile-badge-photo-wrapper' }, [
$.make('div', { className: 'NB-profile-badge-photo' }, [
$.make('img', { src: profile.photo_url({'size': this.options.photo_size}) })
])