File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
plugins/official/stack-snippets/src Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @stackoverflow/stacks-editor " : patch
3+ ---
4+
5+ Refactor inline styling to stacks css classes, adding positioning class
Original file line number Diff line number Diff line change @@ -127,14 +127,12 @@ export class StackSnippetView implements NodeView {
127127 //Clear the node
128128 this . resultContainer . innerHTML = "" ;
129129 const iframe = document . createElement ( "iframe" ) ;
130- iframe . className = "snippet-box-edit snippet-box-result" ;
130+ iframe . className =
131+ "snippet-box-edit snippet-box-result ps-relative w100 hmn0 baw0" ;
131132 iframe . setAttribute (
132133 "sandbox" ,
133134 "allow-forms allow-modals allow-scripts"
134135 ) ;
135- iframe . style . width = "100%" ;
136- iframe . style . border = "0px" ;
137- iframe . style . minHeight = "300px" ;
138136 if ( content . nodeType === Node . DOCUMENT_NODE ) {
139137 const document = < Document > content ;
140138 iframe . srcdoc = document . documentElement . innerHTML ;
You can’t perform that action at this time.
0 commit comments