mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 10:51:39 +02:00
🐛 Fix problem with scroll in history versions
This commit is contained in:
parent
19b9b3cbd9
commit
c1d3e4cd6e
5 changed files with 24 additions and 9 deletions
|
@ -237,15 +237,11 @@
|
||||||
[:& comments-sidebar]
|
[:& comments-sidebar]
|
||||||
|
|
||||||
(true? is-history?)
|
(true? is-history?)
|
||||||
[:> tab-switcher* {:tabs #js [#js {:label "History" :id "history" :content versions-tab}
|
[:> tab-switcher*
|
||||||
#js {:label "Actions" :id "actions" :content history-tab}]
|
{:tabs #js [#js {:label (tr "workspace.versions.tab.history") :id "history" :content versions-tab}
|
||||||
:default-selected "history"
|
#js {:label (tr "workspace.versions.tab.actions") :id "actions" :content history-tab}]
|
||||||
;;:selected (name section)
|
:default-selected "history"
|
||||||
;;:on-change-tab on-tab-change
|
:class (stl/css :left-sidebar-tabs)}]
|
||||||
:class (stl/css :left-sidebar-tabs)
|
|
||||||
;;:action-button-position "start"
|
|
||||||
;;:action-button (mf/html [:& collapse-button {:on-click handle-collapse}])
|
|
||||||
}]
|
|
||||||
|
|
||||||
:else
|
:else
|
||||||
[:> options-toolbox props])]]]))
|
[:> options-toolbox props])]]]))
|
||||||
|
|
|
@ -113,4 +113,5 @@ $width-settings-bar-max: $s-500;
|
||||||
.versions-tab {
|
.versions-tab {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
height: calc(100vh - $s-88);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,10 @@
|
||||||
|
|
||||||
.version-toolbox {
|
.version-toolbox {
|
||||||
padding: $s-8;
|
padding: $s-8;
|
||||||
|
height: 100%;
|
||||||
|
display: grid;
|
||||||
|
overflow: hidden;
|
||||||
|
grid-template-rows: auto auto 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.versions-entry-empty {
|
.versions-entry-empty {
|
||||||
|
@ -49,6 +53,8 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: $s-6;
|
gap: $s-6;
|
||||||
|
overflow: auto;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.version-entry {
|
.version-entry {
|
||||||
|
|
|
@ -6565,3 +6565,9 @@ msgstr "Open version menu"
|
||||||
#, unused
|
#, unused
|
||||||
msgid "workspace.viewport.click-to-close-path"
|
msgid "workspace.viewport.click-to-close-path"
|
||||||
msgstr "Click to close the path"
|
msgstr "Click to close the path"
|
||||||
|
|
||||||
|
msgid "workspace.versions.tab.history"
|
||||||
|
msgstr "History"
|
||||||
|
|
||||||
|
msgid "workspace.versions.tab.actions"
|
||||||
|
msgstr "Actions"
|
||||||
|
|
|
@ -6560,3 +6560,9 @@ msgstr "Abrir menu de versiones"
|
||||||
#, unused
|
#, unused
|
||||||
msgid "workspace.viewport.click-to-close-path"
|
msgid "workspace.viewport.click-to-close-path"
|
||||||
msgstr "Pulsar para cerrar la ruta"
|
msgstr "Pulsar para cerrar la ruta"
|
||||||
|
|
||||||
|
msgid "workspace.versions.tab.history"
|
||||||
|
msgstr "Histórico"
|
||||||
|
|
||||||
|
msgid "workspace.versions.tab.actions"
|
||||||
|
msgstr "Acciones"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue