mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
leaderboard scrolling
This commit is contained in:
parent
08d071b204
commit
3d40c2949d
@ -57,11 +57,11 @@ export const FurnitureHighScoreView: FC<{}> = props =>
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ObjectLocationView objectId={ objectId } category={ RoomObjectCategory.FLOOR }>
|
<ObjectLocationView objectId={ objectId } category={ RoomObjectCategory.FLOOR }>
|
||||||
<div className="nitro-widget-high-score nitro-context-menu">
|
<div className="nitro-widget-high-score nitro-context-menu d-flex flex-column">
|
||||||
<ContextMenuHeaderView>
|
<ContextMenuHeaderView>
|
||||||
{ LocalizeText('high.score.display.caption', [ 'scoretype', 'cleartype' ], [ LocalizeText(`high.score.display.scoretype.${ SCORE_TYPES[stuffData.scoreType] }`), LocalizeText(`high.score.display.cleartype.${ CLEAR_TYPES[stuffData.clearType] }`)]) }
|
{ LocalizeText('high.score.display.caption', [ 'scoretype', 'cleartype' ], [ LocalizeText(`high.score.display.scoretype.${ SCORE_TYPES[stuffData.scoreType] }`), LocalizeText(`high.score.display.cleartype.${ CLEAR_TYPES[stuffData.clearType] }`)]) }
|
||||||
</ContextMenuHeaderView>
|
</ContextMenuHeaderView>
|
||||||
<ContextMenuListView overflow="hidden" gap={ 1 }>
|
<ContextMenuListView overflow="hidden" gap={ 1 } className="h-100">
|
||||||
<Column gap={ 1 }>
|
<Column gap={ 1 }>
|
||||||
<Flex alignItems="center">
|
<Flex alignItems="center">
|
||||||
<Text center bold variant="white" className="col-8">
|
<Text center bold variant="white" className="col-8">
|
||||||
@ -73,7 +73,7 @@ export const FurnitureHighScoreView: FC<{}> = props =>
|
|||||||
</Flex>
|
</Flex>
|
||||||
<hr className="m-0" />
|
<hr className="m-0" />
|
||||||
</Column>
|
</Column>
|
||||||
<Column overflow="auto" gap={ 1 }>
|
<Column overflow="auto" gap={ 1 } className="overflow-y-scroll">
|
||||||
{ stuffData.entries.map((entry, index) =>
|
{ stuffData.entries.map((entry, index) =>
|
||||||
{
|
{
|
||||||
return (
|
return (
|
||||||
@ -86,7 +86,7 @@ export const FurnitureHighScoreView: FC<{}> = props =>
|
|||||||
</Text>
|
</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
}) }
|
})}
|
||||||
</Column>
|
</Column>
|
||||||
</ContextMenuListView>
|
</ContextMenuListView>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user