Update editor.html

This commit is contained in:
Namhyeon Go 2025-03-09 17:50:17 +09:00 committed by GitHub
parent bb3cd40012
commit fdc6062433
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,25 +12,18 @@
padding: 0; padding: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex;
flex-direction: column;
overflow: hidden; overflow: hidden;
} }
.ribbon-menu {
flex-shrink: 0;
}
#container { #container {
flex-grow: 1;
border: 1px solid grey; border: 1px solid grey;
height: calc(100% - 139px);
overflow: hidden; overflow: hidden;
display: flex;
} }
.banner { .banner {
text-align: center; text-align: center;
padding: 10px; padding: 10px;
background-color: #f1f1f1; background-color: #f1f1f1;
font-size: 14px; font-size: 14px;
flex-shrink: 0;
} }
</style> </style>
</head> </head>
@ -83,7 +76,6 @@
value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'), value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'),
language: 'javascript' language: 'javascript'
}); });
resizeEditor();
}); });
window.addEventListener('resize', resizeEditor); window.addEventListener('resize', resizeEditor);