0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 06:58:58 -05:00

🐛 Fix problem with scroll in history versions

This commit is contained in:
alonso.torres 2024-11-22 15:31:06 +01:00
parent 19b9b3cbd9
commit c1d3e4cd6e
5 changed files with 24 additions and 9 deletions

View file

@ -237,15 +237,11 @@
[:& comments-sidebar]
(true? is-history?)
[:> tab-switcher* {:tabs #js [#js {:label "History" :id "history" :content versions-tab}
#js {:label "Actions" :id "actions" :content history-tab}]
[:> tab-switcher*
{:tabs #js [#js {:label (tr "workspace.versions.tab.history") :id "history" :content versions-tab}
#js {:label (tr "workspace.versions.tab.actions") :id "actions" :content history-tab}]
:default-selected "history"
;;:selected (name section)
;;:on-change-tab on-tab-change
:class (stl/css :left-sidebar-tabs)
;;:action-button-position "start"
;;:action-button (mf/html [:& collapse-button {:on-click handle-collapse}])
}]
:class (stl/css :left-sidebar-tabs)}]
:else
[:> options-toolbox props])]]]))

View file

@ -113,4 +113,5 @@ $width-settings-bar-max: $s-500;
.versions-tab {
width: 100%;
overflow: hidden;
height: calc(100vh - $s-88);
}

View file

@ -8,6 +8,10 @@
.version-toolbox {
padding: $s-8;
height: 100%;
display: grid;
overflow: hidden;
grid-template-rows: auto auto 1fr;
}
.versions-entry-empty {
@ -49,6 +53,8 @@
display: flex;
flex-direction: column;
gap: $s-6;
overflow: auto;
margin: 0;
}
.version-entry {

View file

@ -6565,3 +6565,9 @@ msgstr "Open version menu"
#, unused
msgid "workspace.viewport.click-to-close-path"
msgstr "Click to close the path"
msgid "workspace.versions.tab.history"
msgstr "History"
msgid "workspace.versions.tab.actions"
msgstr "Actions"

View file

@ -6560,3 +6560,9 @@ msgstr "Abrir menu de versiones"
#, unused
msgid "workspace.viewport.click-to-close-path"
msgstr "Pulsar para cerrar la ruta"
msgid "workspace.versions.tab.history"
msgstr "Histórico"
msgid "workspace.versions.tab.actions"
msgstr "Acciones"