Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

want to set Resource Card cols to a value of 1 to 6. #2768

Open
yuki-yogi opened this issue May 14, 2024 · 1 comment
Open

want to set Resource Card cols to a value of 1 to 6. #2768

yuki-yogi opened this issue May 14, 2024 · 1 comment
Labels
Enhancement New feature or request Help wanted We could use some help with this Task Something to get done

Comments

@yuki-yogi
Copy link

yuki-yogi commented May 14, 2024

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 yuki-yogi changed the title want to set Resource Card cols to a value greater than 4. want to set Resource Card cols to a value of 1 to 6. May 14, 2024
@adrianthedev adrianthedev added Enhancement New feature or request Help wanted We could use some help with this Task Something to get done labels May 15, 2024
@adrianthedev
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Help wanted We could use some help with this Task Something to get done
Projects
Status: No status
Development

No branches or pull requests

2 participants