Small tweaks

This commit is contained in:
Artur
2020-07-03 18:18:29 +03:00
parent f0154f3f1c
commit af41be7557
3 changed files with 7 additions and 4 deletions

View File

@@ -100,6 +100,7 @@ export const CameraConsoleContent = (props, context) => {
return (
<Fragment>
<Input
autoFocus
fluid
mb={1}
placeholder="Search for a camera"

View File

@@ -38,7 +38,7 @@ const BasicSection = (props, context) => {
const things = source.filter(searchFor(searchText));
things.sort(compareNumberedText);
return source.length > 0 && (
<Section title={title}>
<Section title={`${title} - (${source.length})`}>
{things.map(thing => (
<Button
key={thing.name}
@@ -119,9 +119,10 @@ export const Orbit = (props, context) => {
return (
<Window>
<Window.Content>
<Window.Content scrollable>
<Section>
<Input
autoFocus
fluid
value={searchText}
onInput={(_, value) => setSearchText(value)}

View File

@@ -70,6 +70,7 @@ export const GenericUplink = (props, context) => {
<Fragment>
Search
<Input
autoFocus
value={searchText}
onInput={(e, value) => setSearchText(value)}
mx={1} />
@@ -162,7 +163,7 @@ const ItemList = (props, context) => {
onmouseover={() => setHoveredItem(item)}
onmouseout={() => setHoveredItem({})}
onClick={() => act('buy', {
item: item.name,
name: item.name,
})} />
</Table.Cell>
</Table.Row>
@@ -182,7 +183,7 @@ const ItemList = (props, context) => {
onmouseover={() => setHoveredItem(item)}
onmouseout={() => setHoveredItem({})}
onClick={() => act('buy', {
item: item.name,
name: item.name,
})} />
)}>
{decodeHtmlEntities(item.desc)}