mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
Small tweaks
This commit is contained in:
@@ -100,6 +100,7 @@ export const CameraConsoleContent = (props, context) => {
|
||||
return (
|
||||
<Fragment>
|
||||
<Input
|
||||
autoFocus
|
||||
fluid
|
||||
mb={1}
|
||||
placeholder="Search for a camera"
|
||||
|
||||
@@ -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)}
|
||||
|
||||
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user