Sha256: c80b48500e32776e8c99c638d68644ebe89065ddc126a3cc4a7d7922b81f4172

Contents?: true

Size: 989 Bytes

Versions: 155

Compression:

Stored size: 989 Bytes

Contents

<div id="<%= dom_id file %>" class="relative min-h-full max-w-full flex-1 flex">
  <% if file.present? %>
    <div class="grid grid-cols-6 gap-2 items-center max-w-full w-full">
      <div class="col-span-4 flex-1 flex flex-row items-center text-gray-700 overflow-x-auto mac-styled-scrollbar ">
        <div class="rounded-full bg-slate-100 border border-gray-500 p-1.5 flex items-center justify-center">
          <%= helpers.svg icon_for_file, class: "h-5 text-gray-600" %>
        </div>
        <p class="items-center h-full p-2 flex-shrink-0">
          <%= file.filename %>
        </p>
      </div>
      <div class="text-gray-700 flex-shrink-0 text-sm">
        <%= helpers.number_to_human_size(file.byte_size) %>
      </div>
      <div class="flex space-x-2 justify-end col-span-1 flex-shrink-0">
        <%= render Avo::Fields::Common::Files::ControlsComponent.new(field: field, file: file, resource: resource) %>
      </div>
    </div>
  <% else %>
    –
  <% end %>
</div>

Version data entries

155 entries across 155 versions & 1 rubygems

Version Path
avo-3.0.1.beta4 app/components/avo/fields/common/files/view_type/list_component.html.erb
avo-3.0.1.beta3 app/components/avo/fields/common/files/view_type/list_component.html.erb
avo-3.0.0.beta1 app/components/avo/fields/common/files/view_type/list_component.html.erb
avo-3.0.1.beta1 app/components/avo/fields/common/files/view_type/list_component.html.erb
avo-3.0.0.pre17 app/components/avo/fields/common/files/view_type/list_component.html.erb
avo-3.0.0.pre18 app/components/avo/fields/common/files/view_type/list_component.html.erb
avo-3.0.0.pre14 app/components/avo/fields/common/files/view_type/list_component.html.erb
avo-3.0.0.pre16 app/components/avo/fields/common/files/view_type/list_component.html.erb
avo-3.0.0.pre15 app/components/avo/fields/common/files/view_type/list_component.html.erb
avo-3.0.0.pre13 app/components/avo/fields/common/files/view_type/list_component.html.erb
avo-3.0.0.pre12 app/components/avo/fields/common/files/view_type/list_component.html.erb
avo-3.0.0.pre10 app/components/avo/fields/common/files/view_type/list_component.html.erb
avo-3.0.0.pre11 app/components/avo/fields/common/files/view_type/list_component.html.erb
avo-3.0.0.pre9 app/components/avo/fields/common/files/view_type/list_component.html.erb
avo-3.2.2 app/components/avo/fields/common/files/view_type/list_item_component.html.erb
avo-3.2.1 app/components/avo/fields/common/files/view_type/list_item_component.html.erb
avo-3.2.0 app/components/avo/fields/common/files/view_type/list_item_component.html.erb
avo-3.1.7 app/components/avo/fields/common/files/view_type/list_item_component.html.erb
avo-3.1.6 app/components/avo/fields/common/files/view_type/list_item_component.html.erb
avo-3.1.5 app/components/avo/fields/common/files/view_type/list_item_component.html.erb