mirror of
https://github.com/penpot/penpot.git
synced 2025-04-16 08:51:32 -05:00
✨ Add debug history overlay
This commit is contained in:
parent
553f2f5576
commit
4aa8baa129
3 changed files with 18 additions and 0 deletions
|
@ -4,6 +4,16 @@
|
|||
//
|
||||
// Copyright (c) KALEIDOS INC
|
||||
|
||||
.history-debug-overlay {
|
||||
background: $color-gray-50;
|
||||
bottom: 0;
|
||||
max-height: 500px;
|
||||
overflow-y: auto;
|
||||
position: absolute;
|
||||
width: 500px;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.history-toolbox {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
|
@ -1969,3 +1969,6 @@
|
|||
(dm/export dwv/update-viewport-size)
|
||||
(dm/export dwv/start-panning)
|
||||
(dm/export dwv/finish-panning)
|
||||
|
||||
;; Undo
|
||||
(dm/export dwu/reinitialize-undo)
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
[app.main.ui.workspace.libraries]
|
||||
[app.main.ui.workspace.nudge]
|
||||
[app.main.ui.workspace.sidebar :refer [left-sidebar right-sidebar]]
|
||||
[app.main.ui.workspace.sidebar.history :refer [history-toolbox]]
|
||||
[app.main.ui.workspace.textpalette :refer [textpalette]]
|
||||
[app.main.ui.workspace.viewport :refer [viewport]]
|
||||
[app.util.dom :as dom]
|
||||
|
@ -72,6 +73,10 @@
|
|||
(when (debug? :coordinates)
|
||||
[:& coordinates/coordinates {:colorpalette? colorpalette?}])
|
||||
|
||||
(when (debug? :history-overlay)
|
||||
[:div.history-debug-overlay
|
||||
[:button {:on-click #(st/emit! dw/reinitialize-undo)} "CLEAR"]
|
||||
[:& history-toolbox]])
|
||||
[:& viewport {:file file
|
||||
:wlocal wlocal
|
||||
:wglobal wglobal
|
||||
|
|
Loading…
Add table
Reference in a new issue