mirror of
https://github.com/Lissy93/web-check.git
synced 2024-11-22 16:23:56 +01:00
Fixed homepage responsivness on Chromium webkit browsers
This commit is contained in:
parent
9a5af64d1b
commit
679aab140d
@ -4,7 +4,7 @@ import Row from 'components/Form/Row';
|
||||
|
||||
const cardStyles = `
|
||||
grid-column: span 2;
|
||||
span.val { max-width: 32rem; }
|
||||
span.val { max-width: 32rem !important; }
|
||||
`;
|
||||
|
||||
const TxtRecordCard = (props: {data: any, title: string, actionButtons: any }): JSX.Element => {
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { useEffect } from "react";
|
||||
|
||||
|
||||
const FancyBackground = (): JSX.Element => {
|
||||
@ -325,7 +326,7 @@ const FancyBackground = (): JSX.Element => {
|
||||
return { x: xx, y: yy };
|
||||
};
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
useEffect(() => {
|
||||
App.setup();
|
||||
App.draw();
|
||||
|
||||
@ -334,7 +335,8 @@ const FancyBackground = (): JSX.Element => {
|
||||
requestAnimationFrame(frame);
|
||||
};
|
||||
frame();
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
||||
|
||||
return (
|
||||
|
@ -8,18 +8,25 @@ const StyledFooter = styled.footer`
|
||||
padding: 0.5rem 0;
|
||||
background: ${colors.backgroundDarker};
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
align-content: center;
|
||||
flex-wrap: wrap;
|
||||
opacity: 0.75;
|
||||
transition: all 0.2s ease-in-out;
|
||||
@media (min-width: 1024px) {
|
||||
justify-content: space-between;
|
||||
}
|
||||
&:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
span {
|
||||
margin: 0 0.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
const Link = styled.a`
|
||||
color: ${colors.primary};
|
||||
font-weight: bold;
|
||||
|
@ -119,7 +119,7 @@ const Home = (): JSX.Element => {
|
||||
/>
|
||||
{/* <FindIpButton onClick={findIpAddress}>Or, find my IP</FindIpButton> */}
|
||||
{ errorMsg && <ErrorMessage>{errorMsg}</ErrorMessage>}
|
||||
<Button size="large" onClick={submit}>Analyze!</Button>
|
||||
<Button styles="width: calc(100% - 1rem);" size="large" onClick={submit}>Analyze!</Button>
|
||||
</UserInputMain>
|
||||
<Footer isFixed={true} />
|
||||
</HomeContainer>
|
||||
|
Loading…
Reference in New Issue
Block a user