@@ -229,42 +229,20 @@ export default class EditorFile {
229229 container . appendChild ( content ) ;
230230 this . #content = container ;
231231 } else {
232- container = tag ( "div" , {
233- className : "tab-page-container" ,
234- } ) ;
232+ container = < div className = "tab-page-container" /> ;
235233
236234 // shadow dom
237235 shadow = container . attachShadow ( { mode : "open" } ) ;
238236
239- // main app styles
240- const mainStyle = tag ( "link" , {
241- rel : "stylesheet" ,
242- href : "./css/build/main.css" ,
243- } ) ;
244- // icon styles
245- const iconStyle = tag ( "link" , {
246- rel : "stylesheet" ,
247- href : "./res/icons/style.css" ,
248- } ) ;
249- // file icon styles
250- const fileIconStyle = tag ( "link" , {
251- rel : "stylesheet" ,
252- href : "./res/file-icons/style.css" ,
253- } ) ;
254-
255237 // Add base styles to shadow DOM first
256- shadow . appendChild ( mainStyle ) ;
257- shadow . appendChild ( iconStyle ) ;
258- shadow . appendChild ( fileIconStyle ) ;
238+ shadow . appendChild ( < link rel = "stylesheet" href = "build/main.css" /> ) ;
259239
260240 // Handle custom stylesheets if provided
261241 if ( options . stylesheets ) {
262242 this . #addCustomStyles( options . stylesheets , shadow ) ;
263243 }
264244
265- const content = tag ( "div" , {
266- className : "tab-page-content" ,
267- } ) ;
245+ const content = < div className = "tab-page-content" /> ;
268246
269247 if ( typeof options . content === "string" ) {
270248 content . innerHTML = DOMPurify . sanitize ( options . content ) ;
0 commit comments