Bai - Fixed content overflow on mobile

This commit is contained in:
Camerin Figueroa 2022-06-14 21:20:02 -04:00
parent 37ca3072c0
commit 141c45027f
3 changed files with 18 additions and 9 deletions

View File

@ -91,10 +91,13 @@ class Bai extends React.Component {
return (
<div className="Bai">
{content}
<div className="about">
<h1>About</h1>
<p> You can find the source, dataset and model created for BAI on github at
<a href="https://www.github.com/RaspberryProgramming/BAI"> https://www.github.com/RaspberryProgramming/BAI</a>
<p>
You can find the source, dataset and model created for BAI on github at
</p>
<a href="https://www.github.com/RaspberryProgramming/BAI"> https://www.github.com/RaspberryProgramming/BAI</a>
</div>
</div>
);
}

View File

@ -2,6 +2,10 @@
box-sizing: border-box;
}
a {
overflow-wrap: anywhere;
}
a:link {
color: #FFFFFF;
text-decoration: none;
@ -69,10 +73,7 @@ html, body {
}
@media only screen and (max-width: 600px) {
.App {
flex-direction: column-reverse;
}
.App .app-content {
margin-bottom: 5.5rem;
margin-bottom: 4rem;
}
}

View File

@ -3,13 +3,18 @@
display: flex;
flex-direction: column;
align-items: center;
padding: 10%;
padding: 2rem;
}
.Bai * {
margin-top: 5px;
}
.Bai .about {
display: flex;
flex-direction: column;
}
.Bai h1 {
margin-left: auto;
margin-right: auto;