Skip to content

Commit

Permalink
prevent scrolling when scaling decals
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibenner committed Aug 6, 2021
1 parent 478d638 commit 694ca11
Show file tree
Hide file tree
Showing 11 changed files with 123 additions and 57 deletions.
1 change: 1 addition & 0 deletions src/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
.main {
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.342);
overflow: hidden;
height: fit-content;
}
.controlPanelWrapper {
margin-left: 15px;
Expand Down
18 changes: 13 additions & 5 deletions src/assets/keys/keyDown.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 13 additions & 5 deletions src/assets/keys/keyEsc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 13 additions & 5 deletions src/assets/keys/keyEscRed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions src/assets/keys/keyR.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 18 additions & 5 deletions src/assets/keys/keyUp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 7 additions & 26 deletions src/components/controlPanel/ControlPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,32 +166,13 @@ export default function ControlPanel() {
setColor={setBackgroundColor}
/>
</Card>
{decalPath && (
<Card title="Hotkeys">
<IconWithText
imgSrc={keyR}
imgAlt="rotate"
textContent="Rotate"
/>
<>
<IconWithText
imgSrc={keyUp}
imgAlt="up"
textContent="Scale up"
/>
<IconWithText
imgSrc={keyDown}
imgAlt="down"
textContent="Scale down"
/>
<IconWithText
imgSrc={keyEscRed}
imgAlt="Esc"
textContent="Cancel"
/>
</>
</Card>
)}
<Card title="Hotkeys">
<IconWithText
imgSrc={keyR}
imgAlt="rotate"
textContent="Rotate"
/>
</Card>
{decals.length > 0 && (
<Card title="Decals">
<DecalManager />
Expand Down
2 changes: 1 addition & 1 deletion src/components/iconWithText/iconWithText.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
max-width: 40px;
}
.text {
color: grey;
color: black;
margin: 0 10px;
}
.wrapper {
Expand Down
Loading

0 comments on commit 694ca11

Please sign in to comment.