mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-22 13:19:02 +00:00
Add extra row to coordinator table
This commit is contained in:
parent
085e9ccd48
commit
399671d709
@ -24,7 +24,7 @@ const SettingsPage = (): JSX.Element => {
|
|||||||
<SettingsForm />
|
<SettingsForm />
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item>
|
<Grid item>
|
||||||
<FederationTable maxHeight={14} />
|
<FederationTable maxHeight={18} />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Paper>
|
</Paper>
|
||||||
|
@ -22,14 +22,14 @@ const FederationTable = ({
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { federation, sortedCoordinators, coordinatorUpdatedAt } =
|
const { federation, sortedCoordinators, coordinatorUpdatedAt } =
|
||||||
useContext<UseFederationStoreType>(FederationContext);
|
useContext<UseFederationStoreType>(FederationContext);
|
||||||
const { hostUrl, setOpen } = useContext<UseAppStoreType>(AppContext);
|
const { setOpen } = useContext<UseAppStoreType>(AppContext);
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const [pageSize, setPageSize] = useState<number>(0);
|
const [pageSize, setPageSize] = useState<number>(0);
|
||||||
|
|
||||||
// all sizes in 'em'
|
// all sizes in 'em'
|
||||||
const fontSize = theme.typography.fontSize;
|
const fontSize = theme.typography.fontSize;
|
||||||
const verticalHeightFrame = 3.25;
|
const verticalHeightFrame = 3.3;
|
||||||
const verticalHeightRow = 3.25;
|
const verticalHeightRow = 3.27;
|
||||||
const defaultPageSize = Math.max(
|
const defaultPageSize = Math.max(
|
||||||
Math.floor((maxHeight - verticalHeightFrame) / verticalHeightRow),
|
Math.floor((maxHeight - verticalHeightFrame) / verticalHeightRow),
|
||||||
1,
|
1,
|
||||||
|
Loading…
Reference in New Issue
Block a user