Sha256: c62ef412cdb600c97ef5fa8c4af859db24f67be8da608c31b5265518db70361c

Contents?: true

Size: 489 Bytes

Versions: 4

Compression:

Stored size: 489 Bytes

Contents

class FlashContainerComponent < ViewComponent::Base
  # z-1 es para que no se superponga con el dropdown de la navbar,
  # ya que sticky-top setea un z-index de 1020 y el del dropdown es de 1000
  erb_template <<~HTML
    <div id="flash-container" class="d-flex justify-content-around sticky-top z-1">
      <div id="flash" class="flash position-relative w-100 d-flex justify-content-center">
        <%= content || render(partial: 'pg_layout/flash') %>
      </div>
    </div>
  HTML
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pg_rails-7.6.28 pg_engine/app/components/flash_container_component.rb
pg_rails-7.6.27 pg_engine/app/components/flash_container_component.rb
pg_rails-7.6.26 pg_engine/app/components/flash_container_component.rb
pg_rails-7.6.25 pg_engine/app/components/flash_container_component.rb