X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ea4b289bea3baebde1d23bbf38ded4e8da7ff298..d144724e1b48fa10e28f1e0ddddf440c6ac90ee2:/apps/workbench/app/views/collections/_show_files.html.erb diff --git a/apps/workbench/app/views/collections/_show_files.html.erb b/apps/workbench/app/views/collections/_show_files.html.erb index fbd8c4b266..e3c79f143b 100644 --- a/apps/workbench/app/views/collections/_show_files.html.erb +++ b/apps/workbench/app/views/collections/_show_files.html.erb @@ -1,114 +1,108 @@ -<% content_for :css do %> -ul#collection_files { - padding-left: 0; -} +<% + preview_selectable_container = '' + preview_selectable = '' + padding_left = '1em' + if !params['use_preview_selection'].nil? and params['use_preview_selection'] == 'true' + preview_selectable_container = 'preview-selectable-container selectable-container' + preview_selectable = 'preview-selectable selectable' + padding_left = '0em' + end +%> -ul.collection_files { - line-height: 2.5em; - list-style-type: none; - padding-left: 2.3em; -} - -ul.collection_files li { - clear: both; -} - -.collection_files_row { - padding: 1px; /* Replaced by border for :hover */ -} - -.collection_files_row:hover { - background-color: #D9EDF7; - padding: 0px; - border: 1px solid #BCE8F1; - border-radius: 3px; -} - -.collection_files_inline { - clear: both; - width: 80%; - height: auto; - max-height: 6em; - margin: 0 1em; -} - -.collection_files_name { - padding-left: .5em; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.collection_files_name i.fa-fw:first-child { - width: 1.6em; -} -<% end %> - -<% content_for :tab_line_buttons do %> -
This collection is empty.
-<% else %> -This collection is empty.
+ <% else %> +