fix(website): screenshot would not fit properly on some screen sizes

This commit is contained in:
Elian Doran 2025-09-30 21:53:15 +03:00
parent c2639951a5
commit 5279601105
No known key found for this signature in database
2 changed files with 9 additions and 2 deletions

View File

@ -47,7 +47,8 @@ section.hero-section {
}
.title-section {
flex-basis: 40%;
flex-basis: 30%;
flex-shrink: 0;
color: var(--muted-color);
h1 {
@ -57,6 +58,10 @@ section.hero-section {
}
}
.screenshot-container {
flex-grow: 1;
}
.screenshot {
position: relative;
width: 100%;

View File

@ -86,7 +86,9 @@ function HeroSection() {
</div>
{screenshotUrl && <img class="screenshot" src={screenshotUrl} alt="Screenshot of the Trilium Notes desktop application" />}
<div className="screenshot-container">
{screenshotUrl && <img class="screenshot" src={screenshotUrl} alt="Screenshot of the Trilium Notes desktop application" />}
</div>
</Section>
)
}