Skip to content

Commit

Permalink
Merge pull request #920 from nymtech/nodemap-responsiveness
Browse files Browse the repository at this point in the history
quick fix adding dimensions to nodemap page for consistency
  • Loading branch information
Aid19801 authored Nov 26, 2021
2 parents c361de6 + 56fa482 commit 6ee5b68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions explorer/src/pages/MixnodesMap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ export const PageMixnodesMap: React.FC = () => {
if (countryData?.data && !countryData.isLoading) {
return (
<Box component="main" sx={{ flexGrow: 1 }}>
<Grid container spacing={1} sx={{ mb: 4 }}>
<Grid item xs={12} data-testid="mixnodes-globe">
<Title text="Mixnodes Around the Globe" />
<Grid>
<Grid item data-testid="mixnodes-globe">
<Title text="Overview" />
</Grid>
<Grid item xs={12} lg={9}>
<Grid item>
<Grid container spacing={2}>
<Grid item xs={12}>
<ContentCard title="Distribution of nodes">
Expand Down
2 changes: 1 addition & 1 deletion explorer/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function countryDataToGridRow(
const updatedCountryRecord: CountryDataRowType = {
...each,
id: index,
countryName: getName(each.ISO3, 'en', { select: 'official' }),
countryName: getName(each.ISO3, 'en', { select: 'alias' }),
percentage: ((each.nodes * 100) / totalNodes).toFixed(1),
};
return updatedCountryRecord;
Expand Down

0 comments on commit 6ee5b68

Please sign in to comment.