Attempting to reduce code size
This commit is contained in:
@ -6,6 +6,7 @@ import kotlinx.browser.document
|
||||
|
||||
@OptIn(ExperimentalComposeUiApi::class)
|
||||
fun main() {
|
||||
document.getElementById("loading")?.remove()
|
||||
ComposeViewport(document.body!!) {
|
||||
App()
|
||||
}
|
||||
|
@ -8,5 +8,6 @@
|
||||
<script type="application/javascript" src="composeApp.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="loading">⏳ UI Loading...</div>
|
||||
</body>
|
||||
</html>
|
@ -4,4 +4,15 @@ html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#loading {
|
||||
/* perfectly center this div */
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
font-size: 2em;
|
||||
color: #000;
|
||||
text-align: center;
|
||||
}
|
Reference in New Issue
Block a user