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 (
|
||||
<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>
|
||||
{ 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>
|
||||
<ContextMenuListView overflow="hidden" gap={ 1 }>
|
||||
<ContextMenuListView overflow="hidden" gap={ 1 } className="h-100">
|
||||
<Column gap={ 1 }>
|
||||
<Flex alignItems="center">
|
||||
<Text center bold variant="white" className="col-8">
|
||||
@ -73,7 +73,7 @@ export const FurnitureHighScoreView: FC<{}> = props =>
|
||||
</Flex>
|
||||
<hr className="m-0" />
|
||||
</Column>
|
||||
<Column overflow="auto" gap={ 1 }>
|
||||
<Column overflow="auto" gap={ 1 } className="overflow-y-scroll">
|
||||
{ stuffData.entries.map((entry, index) =>
|
||||
{
|
||||
return (
|
||||
@ -86,7 +86,7 @@ export const FurnitureHighScoreView: FC<{}> = props =>
|
||||
</Text>
|
||||
</Flex>
|
||||
);
|
||||
}) }
|
||||
})}
|
||||
</Column>
|
||||
</ContextMenuListView>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user