Skip to content

Commit

Permalink
fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
TopETH committed May 10, 2024
1 parent 773b2cc commit 41d93a0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/components/Modals/Regions/Interlace/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ export const InterlaceModal = ({
const [working, setWorking] = useState(false);
const [position, setPosition] = useState(oneStart);

const newMask = maskToBin(maskFromChunk(oneStart, position + 1));
const newMask =
oneStart <= position + 1
? maskToBin(maskFromChunk(oneStart, position + 1))
: '';

const onInterlace = async () => {
if (!api || !activeAccount || !activeSigner) return;
Expand Down
5 changes: 3 additions & 2 deletions src/pages/paras/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const ParachainManagement = () => {
}, [relayApiState, relayApi]);

return (
<Box>
<Box sx={{ height: '100%', display: 'flex', flexDirection: 'column' }}>
<Box sx={{ display: 'flex', justifyContent: 'space-between' }}>
<Box>
<Typography
Expand Down Expand Up @@ -125,7 +125,8 @@ const ParachainManagement = () => {
<CircularProgress />
</Backdrop>
) : (
<Box>
<Box sx={{ mt: '1rem', overflowY: 'auto' }}>
<div>{parachains.length}</div>
{parachains.map(({ id, state }, index) => (
<div key={index}>
{id} - {state}
Expand Down
5 changes: 3 additions & 2 deletions src/pages/regions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ const Dashboard = () => {
display: 'flex',
height: '100%',
justifyContent: 'space-between',
mt: '1rem',
}}
>
<Box
Expand All @@ -155,8 +156,7 @@ const Dashboard = () => {
overflowY: 'auto',
display: 'flex',
flexDirection: 'column',
gap: '2rem',
mt: '1rem',
gap: '0.75rem',
'::-webkit-scrollbar': {
display: 'none',
},
Expand Down Expand Up @@ -195,6 +195,7 @@ const Dashboard = () => {
color: theme.palette.text.secondary,
minWidth: '18rem',
padding: '2rem 3rem',
maxHeight: '32.5rem',
}}
>
<Typography variant='h1' color={theme.palette.text.primary}>
Expand Down

0 comments on commit 41d93a0

Please sign in to comment.