Skip to content

Commit

Permalink
Fixed homepage responsivness on Chromium webkit browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Jul 18, 2023
1 parent 9a5af64 commit 679aab1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Results/TxtRecords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
6 changes: 4 additions & 2 deletions src/components/misc/FancyBackground.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useEffect } from "react";


const FancyBackground = (): JSX.Element => {
Expand Down Expand Up @@ -325,7 +326,7 @@ const FancyBackground = (): JSX.Element => {
return { x: xx, y: yy };
};

document.addEventListener('DOMContentLoaded', function () {
useEffect(() => {
App.setup();
App.draw();

Expand All @@ -334,7 +335,8 @@ const FancyBackground = (): JSX.Element => {
requestAnimationFrame(frame);
};
frame();
});
}, []);



return (
Expand Down
9 changes: 8 additions & 1 deletion src/components/misc/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 679aab1

Please sign in to comment.