Skip to content

Commit

Permalink
Collapse pin mapping to one column
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelsin committed Oct 7, 2024
1 parent 348b054 commit 0ff5938
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions www/src/Pages/PinMapping.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@
grid-template-columns: 1fr 1fr;
grid-template-rows: repeat(15, auto);
}

@media only screen and (max-width: 680px) {
.pin-grid {
display: flex;
flex-direction: column;
}
}
2 changes: 1 addition & 1 deletion www/src/Pages/PinMapping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ const PinSelectList = memo(function PinSelectList({
[buttonNames],
);
return Object.entries(pins).map(([pin, pinData], index) => (
<div key={`select-${index}`} className="d-flex col align-items-center">
<div key={`select-${index}`} className="d-flex align-items-center">
<div className="d-flex flex-shrink-0" style={{ width: '4rem' }}>
<label>{pin.toUpperCase()}</label>
</div>
Expand Down

0 comments on commit 0ff5938

Please sign in to comment.