fix pad.ma info page css

This commit is contained in:
rolux 2013-02-09 15:21:58 +05:30
parent 011fed137d
commit 530454719b

View file

@ -359,8 +359,9 @@ pandora.ui.infoView = function(data) {
type: 'textarea', type: 'textarea',
value: data.summary || '' value: data.summary || ''
}) })
// 4px marginTop gets duplicated in the editable, result is 8px
.css(css) .css(css)
// 8px marginTop gets duplicated in the editable, result is 16px
.css({marginTop: '8px'})
.bindEvent({ .bindEvent({
submit: function(event) { submit: function(event) {
editMetadata('summary', event.value); editMetadata('summary', event.value);
@ -369,12 +370,12 @@ pandora.ui.infoView = function(data) {
) )
.appendTo($center); .appendTo($center);
} else if (data.summary) { } else if (data.summary) {
$('<div>').css(css).html(data.summary).appendTo($center); $('<div>').css(css).css({marginTop: '16px'}).html(data.summary).appendTo($center);
} }
// License ----------------------------------------------------------------- // License -----------------------------------------------------------------
$div = $('<div>').css(css).css({marginTop: '8px'}).appendTo($center); $div = $('<div>').css(css).css({marginTop: '16px'}).appendTo($center);
if (canEdit) { if (canEdit) {
$('<div>') $('<div>')
.css({float: 'left'}) .css({float: 'left'})