diff --git a/app/assets/stylesheets/my_modules/protocols/index.scss b/app/assets/stylesheets/my_modules/protocols/index.scss index 0c2024ce1..8de4db4f4 100644 --- a/app/assets/stylesheets/my_modules/protocols/index.scss +++ b/app/assets/stylesheets/my_modules/protocols/index.scss @@ -42,6 +42,12 @@ padding: 10px; z-index: 2; } + + .dropdown { + .dropdown-menu { + z-index: 9; + } + } } .content-pane.protocols-repository-edit-view { diff --git a/app/assets/stylesheets/my_modules/results/index.scss b/app/assets/stylesheets/my_modules/results/index.scss index aa604d6f2..685ec3b49 100644 --- a/app/assets/stylesheets/my_modules/results/index.scss +++ b/app/assets/stylesheets/my_modules/results/index.scss @@ -10,6 +10,10 @@ align-items: center; display: flex; + .dropdown-menu { + z-index: 9; + } + .add-result-dropdown { li { cursor: pointer; @@ -80,3 +84,4 @@ flex-direction: column; } } + diff --git a/app/views/my_modules/archive/_result.html.erb b/app/views/my_modules/archive/_result.html.erb index 5508e3d11..dc8b1c021 100644 --- a/app/views/my_modules/archive/_result.html.erb +++ b/app/views/my_modules/archive/_result.html.erb @@ -8,7 +8,7 @@
  • <% option_text = t("my_modules.module_archive.option_download") %> <% if result.is_asset %> - <%= link_to t('protocols.index.archive_results.preview'), rails_blob_path(result.asset.file, disposition: 'attachment'), + <%= link_to t('my_modules.archive_results.preview'), rails_blob_path(result.asset.file, disposition: 'attachment'), class: 'file-preview-link', id: "modal_link#{result.asset.id}", data: { turbolinks: false, id: true, status: 'asset-present', 'preview-url': asset_file_preview_path(result.asset) } %> diff --git a/config/locales/en.yml b/config/locales/en.yml index c6e52c3fe..7016fe71a 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1212,6 +1212,8 @@ en: new_comment: "New comment" edit_title: "Edit result" archive_title: "Archive result" + archive_results: + preview: "View" activities: head_title: "%{project} | %{module} | Activity" no_activities: "There are no activities for this task."