Get rid of center-parent

This commit is contained in:
Ingvar Stepanyan
2024-12-06 01:05:30 +00:00
parent b4cd4a1adf
commit ca9e5b11e7
2 changed files with 2 additions and 10 deletions

View File

@@ -8,7 +8,7 @@
crossorigin="anonymous" crossorigin="anonymous"
/> />
<style> <style>
.center-parent { body {
display: flex; display: flex;
height: 100vh; height: 100vh;
} }

View File

@@ -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'
@@ -158,15 +155,10 @@ class App extends Component {
'repo' 'repo'
), ),
'!' '!'
)
) )
); );
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',