More styling tweaks

This commit is contained in:
Ingvar Stepanyan
2022-01-17 21:58:16 +00:00
parent e544071f85
commit 91b85b5f1e
2 changed files with 24 additions and 18 deletions

View File

@@ -18,24 +18,26 @@
text-align: center; text-align: center;
} }
#capture {
width: 20ch;
}
#config { #config {
overflow-y: auto; overflow-y: auto;
max-height: 100vh; max-height: 100vh;
padding-left: 5px; padding-left: 5px;
box-sizing: border-box; box-sizing: border-box;
border-left: 3px solid black; border-left: 3px solid #777;
}
#config .pure-button {
margin: 1px;
width: 20ch;
} }
#config label { #config label {
max-width: 40%; width: 40%;
} }
#config input,
#config select { #config select {
max-width: 50%; width: 50%;
} }
</style> </style>
<script type="importmap"> <script type="importmap">

View File

@@ -199,6 +199,9 @@ class App extends Component {
h( h(
'form', 'form',
{ class: 'pure-form pure-form-aligned' }, { class: 'pure-form pure-form-aligned' },
h(
'fieldset',
null,
this.connection.supportedOps.triggerCapture this.connection.supportedOps.triggerCapture
? h(CaptureButton, { getFile: this.captureImage }) ? h(CaptureButton, { getFile: this.captureImage })
: undefined, : undefined,
@@ -211,6 +214,7 @@ class App extends Component {
target: '_blank' target: '_blank'
}, },
'⭐ Star on Github' '⭐ Star on Github'
)
), ),
h(Widget, { config: state.config, setValue: this.setValue }) h(Widget, { config: state.config, setValue: this.setValue })
) )