add very basic undo/redo for move/scale/rotate
This commit is contained in:
parent
bf51d56bb5
commit
d9037c67ff
9 changed files with 204 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue