adminfaces / admin-template

JSF responsive admin template based on Bootstrap and AdminLTE
https://adminfaces.github.io/docs/latest/#admin_template
MIT License
209 stars 101 forks source link

Breadcrumb and title clashing #189

Closed ghost closed 5 years ago

ghost commented 5 years ago
Issue Overview

Is there anyway to get the breadcrumbs to be on a different level than the title?

Current Behaviour

image

Expected Behaviour

An image may worth a thousand words image

Additional Information
rmpestano commented 5 years ago

Hi,

the main issue is that the breadCrumb is using absolute position and float right.

In your case as you've long titles I think you could override that using following css:

body .content-header > .breadcrumb {
    position: relative;
    float: none;
    top: 0;
    right: 0;
}

Another option would be to limit the number of breadCrumb items using admin.breadcrumbSize=3 in admin-config.properties.

I hope it helps

ghost commented 5 years ago

Yeah this helps. I added the following css and it seemed to push it down just enough. .content-header>.breadcrumb { margin-top: 20px !important; }

rmpestano commented 5 years ago

.content-header>.breadcrumb { margin-top: 20px !important; }

Nice, if you use a more specific rule you can get ride of the !important:

body .content-header>.breadcrumb { margin-top: 20px; }