State management & UI improvements
This commit is contained in:
32
ui.html
32
ui.html
@@ -7,6 +7,24 @@
|
||||
crossorigin="anonymous"
|
||||
/>
|
||||
<style>
|
||||
.center-parent {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.center {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#capture {
|
||||
width: 20ch;
|
||||
}
|
||||
|
||||
#config {
|
||||
overflow-y: auto;
|
||||
max-height: 100vh;
|
||||
}
|
||||
|
||||
#config label {
|
||||
max-width: 40%;
|
||||
}
|
||||
@@ -14,11 +32,6 @@
|
||||
#config select {
|
||||
max-width: 50%;
|
||||
}
|
||||
|
||||
#canvas-holder,
|
||||
#config {
|
||||
max-height: 100vh;
|
||||
}
|
||||
</style>
|
||||
<script type="importmap">
|
||||
{
|
||||
@@ -31,12 +44,5 @@
|
||||
</script>
|
||||
<script type="module" src="ui.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-2-3" id="canvas-holder">
|
||||
<canvas id="canvas" style="display: flex; margin: auto"></canvas>
|
||||
</div>
|
||||
<div id="config" class="pure-u-1-3" style="overflow-y: auto"></div>
|
||||
</div>
|
||||
</body>
|
||||
<body></body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user