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