cprodhomme / arctic_admin

Responsive Theme for ActiveAdmin
https://arcticadmin.osc-fr1.scalingo.io
MIT License
290 stars 108 forks source link

Active menu expands whole tree #78

Closed zorar4ik closed 3 years ago

zorar4ik commented 4 years ago

https://github.com/cprodhomme/arctic_admin/blob/1d009dcdc87132f5c5875b0b07505a5557bfd3f4/app/assets/stylesheets/arctic_admin/layouts/_sidebar.scss#L98

Current behaviour: When you have nested menu within your sidebar on click it expands whole tree of childish menus like on image: image

Expected behaviour: By default all nested menus are hidden and open on click only: image

      &.open, &.current {
        & > a:nth-child(1) {
          position: relative;

          &:after {
            @include icon("\f0d8");
          }
        }

-      ul {
+      & > ul {
          display: block;
        }
      }
cprodhomme commented 3 years ago

Fix in the version https://github.com/cprodhomme/arctic_admin/releases/tag/V3.2.2

guiferrpereira commented 3 years ago

@cprodhomme this wasn't applied on the webpacker version

cprodhomme commented 3 years ago

@gabrieldesar

Done !

i publish also the version 4.0.1.

If someone know how to setup action for automatic publish version, i need it :)

guiferrpereira commented 3 years ago

@cprodhomme probably i can help you with that.