mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(view) add margin only when view text documents
This commit is contained in:
parent
70bc78373f
commit
1e6c7cf2c9
1 changed files with 3 additions and 2 deletions
|
|
@ -106,7 +106,9 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
} else
|
||||
Info.getData(function(pParams) {
|
||||
var data = document.createTextNode(pParams.data);
|
||||
|
||||
/* add margin only for view text documents */
|
||||
Element.css('margin', '2%');
|
||||
|
||||
$.fancybox(Element.append(data), Config);
|
||||
});
|
||||
}
|
||||
|
|
@ -138,7 +140,6 @@ var CloudCmd, Util, DOM, CloudFunc, $;
|
|||
'font-size: 16px;' +
|
||||
'white-space :pre;' +
|
||||
'outline: 0;' +
|
||||
'margin: 2%;' +
|
||||
'}' +
|
||||
'#view::selection {' +
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue