active_admin_sidebar icon indicating copy to clipboard operation
active_admin_sidebar copied to clipboard

it's possible to change sidebar width ?

Open reda-benhemmouche opened this issue 5 years ago • 1 comments

reda-benhemmouche avatar Nov 12 '19 08:11 reda-benhemmouche

Actually we do not have proper solution for this. Only by overriding the CSS style.

In case if sidebar on the right, add following lines to the app/assets/stylesheets/active_admin.css.scss

body #active_admin_content #sidebar {
    width: 400px !important;
    margin-left: -400px !important; /* must be equal to width(negative) */
}

If sidebar on the left, then the code above does not work. You need another styles:

body #active_admin_content #sidebar {
    width: 400px !important;
}

#main_content_wrapper {
    margin-left: 400px !important; /* or 398px or 402px, play with numbers */
}

workgena avatar Nov 12 '19 18:11 workgena