avo icon indicating copy to clipboard operation
avo copied to clipboard

want to set Resource Card cols, rows to a value of 1 to 6.

Open yuki-yogi opened this issue 1 year ago • 1 comments

Feature

Resource Card cols can also be set to values from 1 to 6.

Current workarounds

Change from sm:grid-cols-3 to sm:grid-cols-6

  • app/components/avo/resource_component.rb
  def render_cards_component
    if Avo.plugin_manager.installed?("avo-dashboards")
      render Avo::CardsComponent.new cards: @resource.detect_cards.visible_cards, classes: "pb-4 sm:grid-cols-3"
    end
  end

Additional context

The reference states that values from 1 to 6 can be set, In reality, however, it is treated as 1~3.

They can have values from 1 to 6.

https://docs.avohq.io/3.0/cards.html#base-settings

yuki-yogi avatar May 14 '24 16:05 yuki-yogi

This feature requires that the resource cards feature take some options, similar to how the dashboards have them and make that configurable.

We can't focus on that right now but we'll take a PR and help someone navigate the codebase.

Also, there's the opportunity to sponsor this feature if your organization can afford it.

adrianthedev avatar May 28 '24 09:05 adrianthedev