forked from 0x2620/pandora
fix pad.ma info page css
This commit is contained in:
parent
011fed137d
commit
530454719b
1 changed files with 4 additions and 3 deletions
|
@ -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'})
|
||||||
|
|
Loading…
Reference in a new issue