-1
I thought it was natural that when the contents of HTML
did not fit on the screen, the browser would automatically allow scrolling for easy viewing. In the following case, for example, I have the Banner
that is rendered within AutoAtendimento
:
function Banner({children, titulo, className}) {
return (
<div className={className}>
<div className="Icone">
{children}
</div>
<div className="Conteudo">
{titulo}
</div>
</div>
)
};
function AutoAtendimento() {
return (
<div className="Geral">
<a href="/">
<Banner className="Cliente" titulo="Sou Cliente"></Banner>
</a>
<a href="/">
<Banner className="Associado" titulo="Sou Associado"></Banner>
</a>
</div>
)
}
Just, I downloaded my application by mobile browser and the Banners did not fit on the screen, because it is a display: flex;
they were arranged in column and then break the vertical limit of the screen. And I can’t scroll to see them:
How to make the application resize and allow scrolling?
Following the CSS
of my Banner
and AutoAtendimento
respectively:
Banner:
* {
border: 0;
box-sizing: border-box;
margin: 0;
padding: 0;
overflow: hidden;
}
AutoAtendimento:
.Geral {
display: flex;
flex: 1;
flex-wrap: wrap;
margin: 30px;
align-items: center;
justify-content: center;
}
I don’t understand ???
– novic