Inventory changes

This commit is contained in:
Bill 2022-01-05 22:07:16 -05:00
parent f6dd2efbd2
commit 43867f9f38
3 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,7 @@ export const InventoryBotView: FC<InventoryBotViewProps> = props =>
</Column> </Column>
{ botItem && { botItem &&
<Column grow justifyContent="between" gap={ 2 }> <Column grow justifyContent="between" gap={ 2 }>
<Text>{ botItem.botData.name }</Text> <Text grow truncate>{ botItem.botData.name }</Text>
{ !!roomSession && { !!roomSession &&
<Button variant="success" size="sm" onClick={ event => attemptBotPlacement(botItem) }> <Button variant="success" size="sm" onClick={ event => attemptBotPlacement(botItem) }>
{ LocalizeText('inventory.furni.placetoroom') } { LocalizeText('inventory.furni.placetoroom') }

View File

@ -6,7 +6,7 @@ import { Column } from '../../../../common/Column';
import { Grid } from '../../../../common/Grid'; import { Grid } from '../../../../common/Grid';
import { Text } from '../../../../common/Text'; import { Text } from '../../../../common/Text';
import { SendMessageHook } from '../../../../hooks/messages'; import { SendMessageHook } from '../../../../hooks/messages';
import { LimitedEditionCompactPlateView } from '../../../../views/shared/limited-edition/compact-plate/LimitedEditionCompactPlateView'; import { LimitedEditionCompactPlateView } from '../../../../views/shared/limited-edition/LimitedEditionCompactPlateView';
import { RarityLevelView } from '../../../../views/shared/rarity-level/RarityLevelView'; import { RarityLevelView } from '../../../../views/shared/rarity-level/RarityLevelView';
import { RoomPreviewerView } from '../../../../views/shared/room-previewer/RoomPreviewerView'; import { RoomPreviewerView } from '../../../../views/shared/room-previewer/RoomPreviewerView';
import { FurniCategory } from '../../common/FurniCategory'; import { FurniCategory } from '../../common/FurniCategory';
@ -128,7 +128,7 @@ export const InventoryFurnitureView: FC<InventoryFurnitureViewProps> = props =>
</Column> </Column>
{ groupItem && { groupItem &&
<Column grow justifyContent="between" gap={ 2 }> <Column grow justifyContent="between" gap={ 2 }>
<Text>{ groupItem.name }</Text> <Text grow truncate>{ groupItem.name }</Text>
{ !!roomSession && { !!roomSession &&
<Button variant="success" size="sm" onClick={ event => attemptItemPlacement(groupItem) }> <Button variant="success" size="sm" onClick={ event => attemptItemPlacement(groupItem) }>
{ LocalizeText('inventory.furni.placetoroom') } { LocalizeText('inventory.furni.placetoroom') }

View File

@ -86,7 +86,7 @@ export const InventoryPetView: FC<InventoryPetViewProps> = props =>
</Column> </Column>
{ petItem && { petItem &&
<Column grow justifyContent="between" gap={ 2 }> <Column grow justifyContent="between" gap={ 2 }>
<Text>{ petItem.petData.name }</Text> <Text grow truncate>{ petItem.petData.name }</Text>
{ !!roomSession && { !!roomSession &&
<Button variant="success" size="sm" onClick={ event => attemptPetPlacement(petItem) }> <Button variant="success" size="sm" onClick={ event => attemptPetPlacement(petItem) }>
{ LocalizeText('inventory.furni.placetoroom') } { LocalizeText('inventory.furni.placetoroom') }