Get rid of center-parent
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
crossorigin="anonymous"
|
||||
/>
|
||||
<style>
|
||||
.center-parent {
|
||||
body {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
@@ -130,9 +130,6 @@ class App extends Component {
|
||||
switch (state.type) {
|
||||
case 'CameraPicker':
|
||||
return h(
|
||||
'div',
|
||||
{ class: 'center-parent' },
|
||||
h(
|
||||
'div',
|
||||
{
|
||||
class: 'center'
|
||||
@@ -159,14 +156,9 @@ class App extends Component {
|
||||
),
|
||||
'!'
|
||||
)
|
||||
)
|
||||
);
|
||||
case 'Status':
|
||||
return h(
|
||||
'div',
|
||||
{ class: 'center-parent' },
|
||||
h('div', { class: 'center' }, state.message)
|
||||
);
|
||||
return h('div', { class: 'center' }, state.message);
|
||||
case 'Config':
|
||||
return h(
|
||||
'div',
|
||||
|
||||
Reference in New Issue
Block a user