אליהו הדס
12/30/2024, 6:32 PMKonstantin Tskhovrebov
12/30/2024, 9:06 PMAlbertas
01/05/2025, 4:24 PM:only-child
, show it. Once the canvas is injected into the page, it will simply disappear.Albertas
01/05/2025, 4:27 PM<body>
<div class="container">
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="<http://www.w3.org/2000/svg>">
<!-- svg content -->
</svg>
<noscript>
This page requires JavaScript to be enabled.
</noscript>
</div>
</body>
.container {
display: none;
}
.container:only-child {
display: flex;
width: 100%;
height: 100%;
gap: 2em;
justify-content: center;
align-items: center;
}
fun main() {
ComposeViewport(document.body!!) {
App()
}
}