mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing size of profile photos to reduce jumpiness when switching between profiles.
This commit is contained in:
parent
9d169f0b97
commit
61e70d80ec
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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}) })
|
||||
])
|
||||
|
|
Loading…
Add table
Reference in a new issue