Skip to content

Commit

Permalink
Get rid of center-parent
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Dec 6, 2024
1 parent b4cd4a1 commit ca9e5b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/preact/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
crossorigin="anonymous"
/>
<style>
.center-parent {
body {
display: flex;
height: 100vh;
}
Expand Down
10 changes: 1 addition & 9 deletions examples/preact/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ class App extends Component {
switch (state.type) {
case 'CameraPicker':
return h(
'div',
{ class: 'center-parent' },
h(
'div',
{
class: 'center'
Expand All @@ -158,15 +155,10 @@ class App extends Component {
'repo'
),
'!'
)
)
);
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',
Expand Down

0 comments on commit ca9e5b1

Please sign in to comment.