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

Spacing of table column headings does not apply correctly to a table that is not in a panel. #91

Open
Alonsormm opened this issue Jun 1, 2021 · 0 comments
Labels

Comments

@Alonsormm
Copy link

Describe the bug
The spacing of table column headings does not apply correctly to a table that is not in a panel.

To Reproduce
Steps to reproduce the behavior:

  1. Adds a table_for component in a show of a resource. (The code is taken from the demo)
show do
  attributes_table do
    row :name
    row :state
  end

  orders = Order.where(book: book)
  show do
  attributes_table do
    row :name
    row :state
  end

  orders = Order.where(book: book)
  table_for orders, sortable: false do
    column :reference
    column :state
    column :created_at     
    column do |order|
      span link_to 'View', order_path(order), class: 'small button action'
      span link_to 'Edit', edit_order_path(order), class: 'small button action'
    end     
  end
end

Expected behavior
The spacing of table column headings should be the same regardless of whether it is within a panel.

Screenshots
With panel:
Screen Shot 2021-06-01 at 17 01 59

Without panel:
Screen Shot 2021-06-01 at 17 01 30

Gemfile

arctic_admin (3.2.0)
      activeadmin (>= 1.1.0, < 3.0)
      font-awesome-sass (~> 5.0)
      jquery-rails
@Alonsormm Alonsormm added the bug label Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant