Skip to content

Commit

Permalink
Add support for horizontal layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ssewell committed Sep 14, 2023
1 parent 53d1954 commit 02e94fc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Printer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function Printer({
const hasProgress = status.TotalLayer > 0;

return (
<>
<div className="printer-container">
<div className="printer-item">
<div>
<PrinterIcon machineName={attr.MachineName} />
Expand Down Expand Up @@ -52,6 +52,6 @@ export default function Printer({
</div>
</div>
{debug && <pre>{JSON.stringify(item, null, 2)}</pre>}
</>
</div>
);
}
16 changes: 15 additions & 1 deletion src/renderer/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,19 @@ body {
justify-content: center;
}

.App {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.6em;
}

/* 3D Printer Layout */
.printer-container {
display: flex;
flex-direction: column;
}

.printer-item {
background: rgb(51, 51, 51);
background: linear-gradient(
Expand All @@ -27,8 +39,10 @@ body {
padding: 30px;
border-radius: 10px;
display: flex;
flex-grow: 1;
height: 300px;
width: 600px;
min-width: 600px;
max-width: 600px;
}

.printer-header {
Expand Down

0 comments on commit 02e94fc

Please sign in to comment.