add very basic undo/redo for move/scale/rotate

This commit is contained in:
Stewart Allen 2021-10-19 21:58:06 -04:00
commit d9037c67ff
9 changed files with 204 additions and 5 deletions

View file

@ -343,6 +343,31 @@ th, tr, td, label {
background-color: white;
}
#doit {
position: absolute;
white-space: nowrap;
font-size: smaller;
font-family: sans-serif;
margin-top: 5px;
padding: 5px;
top: 100%;
left: 50%;
transform: translateX(-50%);
}
#undo, #redo {
color: var(--main-color);
margin: 2px;
padding: 4px;
}
#undo:disabled, #redo:disabled {
color: rgba(0,0,0,.1) !important;
background-color: rgba(0,0,0,0.1) !important;
}
#undo:hover, #redo:hover {
color: black;
background-color: rgba(0,0,0,0.2);
}
#app-acct {
align-items: center;
justify-content: flex-end;

View file

@ -39,6 +39,10 @@
<div>Kiri:Moto</div>
<div id="app-info">version</div>
</div>
<div id="doit" class="f-row a-center">
<button id="undo"><i class="fas fa-undo-alt"></i></button>
<button id="redo"><i class="fas fa-redo-alt"></i></button>
</div>
<div class="grow"></div>
<div id="app-acct">
<i class="fas fa-user-cog"></i>