Laravel-Backpack / CRUD

Build custom admin panels. Fast!
https://backpackforlaravel.com
MIT License
3.17k stars 896 forks source link

[Bug] Unable to produce the same look with CoreUI following instructions from docs #4021

Closed ajcastro closed 1 year ago

ajcastro commented 2 years ago

Bug report

What I did

I have a freshly installed Laravel 8 and install laravel backpack. I am using PHP 8.0

I tried to produce the same CoreUI look based from https://backpackforlaravel.com/docs/4.1/base-how-to#inspired-by-coreui . I copied the following config:

    'header_class' => 'app-header navbar',
    'body_class' => 'app aside-menu-fixed sidebar-lg-show',
    'sidebar_class' => 'sidebar',
    'footer_class' => 'app-footer d-none',

Then I used the blue-bundle.css

'styles' => [
        // 'packages/backpack/base/css/bundle.css', // has primary color electric purple (backpack default)
        'packages/backpack/base/css/blue-bundle.css', // has primary color blue
...

I expect the sidebar to be black but it looks like this instead (in the docs sidebar should be black/dark), image

I also noticed that the sidebar_class it does not have sidebar-pills unlike other theme examples. This seems to remove the left margin/padding and result to this: No sidebar-pills, when the sidebar is hidden: Left padding/margin is missing image No sidebar-pills, when the sidebar is visible: image

So I tried adding sidebar-pills but it didn't fix it.

With sidebar-pills, when the sidebar is hidden: the left padding/margin looks better image With sidebar-pills, when the sidebar is visible: The sidebar links become blue but it should be white image

Is it a bug in the latest version of Backpack?

Yes

After I run composer update backpack/crud the bug... is it still there? Yes

Backpack, Laravel, PHP, DB version

Backpack: 4.1.62 Laravel: 8.76.2 PHP: 8.0 DB: MySQL 5.7

When I run php artisan backpack:version the output is:

### PHP VERSION:
PHP 8.0.7 (cli) (built: Jun  2 2021 00:41:03) ( ZTS Visual C++ 2019 x64 )
Copyright (c) The PHP Group
Zend Engine v4.0.7, Copyright (c) Zend Technologies

### LARAVEL VERSION:
v8.76.2@c67acfdc968f487b6235435080eef62a7e2ed055

### BACKPACK VERSION:
4.1.62@273c277e826c157ef0913962769a7ec9a44b6233

I'll also try to debug and see if I can solve it. But I also would like to report it first. This package is really great and would like to use it for my commercial projects. Thanks!

welcome[bot] commented 2 years ago

Hello there! Thanks for opening your first issue on this repo!

Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.

Backpack communication channels:

Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.

Thank you!

-- Justin Case The Backpack Robot

pxpm commented 1 year ago

I am doing a cleanup of old issues. Sorry this didn't get prioritized at that moment.

We have revamped the whole theme system for Backpack v6 https://backpackforlaravel.com/docs/6.x/base-themes#about-1

Let us know if v6 themes brings the flexibility needed for your custom designs. 🙏

Cheers