Skip to content

Commit

Permalink
style(about): minor layout adjustment
Browse files Browse the repository at this point in the history
When the "No updates available" message appeared, the rest of the window contents were off center; now fixed.
  • Loading branch information
marisademeglio committed Jan 18, 2024
1 parent d25fa8c commit 592f879
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
10 changes: 6 additions & 4 deletions src/renderer/components/AboutView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export function AboutView({ title }) {
Visit the DAISY Pipeline homepage
</a>
<div className="info">
<p>
<p className="versions">
<ul>
<li>App version: {version}</li>
<li>Engine version: {engineVersion}</li>
Expand Down Expand Up @@ -162,7 +162,7 @@ export function AboutView({ title }) {
</p>
<div className="actions">
{update.updateMessage && (
<p>
<p className="updateMessage">
<label
{...(update.downloadProgress
? { htmlFor: 'update-download-progress' }
Expand All @@ -172,8 +172,10 @@ export function AboutView({ title }) {
</label>
</p>
)}
{UpdateButton(update)}
<button onClick={(e) => closeAboutBox()}>Close</button>
<div>
{UpdateButton(update)}
<button onClick={(e) => closeAboutBox()}>Close</button>
</div>
</div>
</div>
</main>
Expand Down
11 changes: 7 additions & 4 deletions src/renderer/style/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ main.about {
justify-content: space-between;
height: 100%;
margin-bottom: var(--pad);
p {
p.versions {
display: flex;
flex-direction: row;
gap: 0.25em;
Expand All @@ -460,10 +460,15 @@ main.about {
}
.actions {
width: 100%;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.actions > div {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
margin-top: 0.5rem;
}

.actions p {
Expand All @@ -480,8 +485,6 @@ main.about {
margin-right: 0em;
}
}


}

input.grayedout {
Expand Down

0 comments on commit 592f879

Please sign in to comment.