diff --git a/frontend/src/app/main/ui/workspace/sidebar.cljs b/frontend/src/app/main/ui/workspace/sidebar.cljs index 6886108a0..cc9a9c550 100644 --- a/frontend/src/app/main/ui/workspace/sidebar.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar.cljs @@ -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}] - :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}]) - }] + [:> 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" + :class (stl/css :left-sidebar-tabs)}] :else [:> options-toolbox props])]]])) diff --git a/frontend/src/app/main/ui/workspace/sidebar.scss b/frontend/src/app/main/ui/workspace/sidebar.scss index 64ca985a4..d4d606d12 100644 --- a/frontend/src/app/main/ui/workspace/sidebar.scss +++ b/frontend/src/app/main/ui/workspace/sidebar.scss @@ -113,4 +113,5 @@ $width-settings-bar-max: $s-500; .versions-tab { width: 100%; overflow: hidden; + height: calc(100vh - $s-88); } diff --git a/frontend/src/app/main/ui/workspace/sidebar/versions.scss b/frontend/src/app/main/ui/workspace/sidebar/versions.scss index 703f8d3be..a924ae31d 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/versions.scss +++ b/frontend/src/app/main/ui/workspace/sidebar/versions.scss @@ -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 { diff --git a/frontend/translations/en.po b/frontend/translations/en.po index 3b7441229..df8d57bbc 100644 --- a/frontend/translations/en.po +++ b/frontend/translations/en.po @@ -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" diff --git a/frontend/translations/es.po b/frontend/translations/es.po index 0c09c0a44..703c7636f 100644 --- a/frontend/translations/es.po +++ b/frontend/translations/es.po @@ -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"