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 ( return (
<div className="Bai"> <div className="Bai">
{content} {content}
<h1>About</h1> <div className="about">
<p> You can find the source, dataset and model created for BAI on github at <h1>About</h1>
<a href="https://www.github.com/RaspberryProgramming/BAI"> https://www.github.com/RaspberryProgramming/BAI</a> <p>
</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> </div>
); );
} }

View File

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

View File

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