style sidebar

This commit is contained in:
andrzej 2024-05-18 14:49:21 +02:00
parent 8225d77a99
commit 051f8adcfb
2 changed files with 11 additions and 4 deletions

View File

@ -54,8 +54,10 @@ main {
min-height: 100%; min-height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-end; justify-content: space-evenly;
align-content: stretch;
h1 { h1 {
font-size: 2em; font-size: 2em;
@ -63,13 +65,18 @@ main {
/* line-height: 0.8em; */ /* line-height: 0.8em; */
font-family: RobotoBold; font-family: RobotoBold;
padding: 0.1em 0.2em 0.1em 0.2em; padding: 0.1em 0.2em 0.1em 0.2em;
align-self: flex-start;
}
#summary {
overflow: scroll;
flex-grow: 2;
max-height: 24rem;
} }
p { p {
font-family: Jura; font-family: Jura;
padding: 0.2em; padding: 0.2em;
overflow: scroll;
height: 10em;
margin: 0.1em 0.2em 0.1em 0.2em; margin: 0.1em 0.2em 0.1em 0.2em;
} }

View File

@ -18,7 +18,7 @@ export function Sidebar({ movie, similarMoviesAvailable, watchProviders }: Sideb
{similarMoviesAvailable ? "" : "No hay data suficiente para darte pelílculas relacionadas."} {similarMoviesAvailable ? "" : "No hay data suficiente para darte pelílculas relacionadas."}
</figcaption> </figcaption>
</figure> </figure>
<p>{movie.overview === null ? "Loading" <p id="summary">{movie.overview === null ? "Loading"
: movie.overview === "" ? "Resumen no disponible." : movie.overview === "" ? "Resumen no disponible."
: movie.overview} : movie.overview}
</p> </p>