avo-hq/avo

Add sidebar to has many fields panels

Open

#2.349 geöffnet am 9. Jan. 2024

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Ruby (308 Forks)user submission
Help wantedTask

Repository-Metriken

Stars
 (1.778 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 6h) (67 gemergte PRs in 30 T)

Beschreibung

Feature

Add the possibility to add a sidebar to a has_many field panel.

Current workarounds

    panel do
      field :posts, as: :has_many
      sidebar panel_wrapper: false do
        tool Avo::ResourceTools::SidebarTool, render_panel: true
      end
    end

This is creating a panel around the has_many and the sidebar, leading to white_panel_classes on the has_many panel background and also the buttons are not above the sidebar. Ideally we should be able to insert the sidebar inside the has_many field

Screenshots or screen recordings

image

Contributor Guide