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

Breadcrumbs are not displaying inline #22

Open
getlashified opened this issue Nov 19, 2020 · 1 comment
Open

Breadcrumbs are not displaying inline #22

getlashified opened this issue Nov 19, 2020 · 1 comment

Comments

@getlashified
Copy link

Good Day,
Please excuse me if I am wrong, I am still a junior developer. I would like to make note of an issue that I have found and provide a fix.

Implementing what is provided, the outcome is having each <li> on a new line:

@if(Breadcrumbs::has())
    @foreach (Breadcrumbs::current() as $crumbs)
        @if ($crumbs->url() && !$loop->last)
            <li class="breadcrumb-item">
                <a href="{{ $crumbs->url() }}">
                    {{ $crumbs->title() }}
                </a>
            </li>
        @else
            <li class="breadcrumb-item active">
                {{ $crumbs->title() }}
            </li>
        @endif
    @endforeach
@endif

View of display:

Screenshot_2020-11-19 Edit Book Gouws Freeway · Electronic Library Assistant

In order to display the breadcrumbs inline I have to add the <ol> tag back from "tabuna/breadcrumbs": "^1.0" and this seems to be working:

        @if(Breadcrumbs::has())
          <ol class="breadcrumb border-0 m-0">
            @foreach (Breadcrumbs::current() as $crumbs)
              @if ($crumbs->url() && !$loop->last)
                <li class="breadcrumb-item">
                  <a href="{{ $crumbs->url() }}">
                    {{ $crumbs->title() }}
                  </a>
                </li>
              @else
                <li class="breadcrumb-item active">
                  {{ $crumbs->title() }}
                </li>
              @endif
            @endforeach
          </ol>
        @endif

View of working display:
Screenshot_2020-11-19 Edit Book Gouws Freeway · Electronic Library Assistant(1)

Thank you.

@monkeydev001
Copy link

Just add display: flex; to .breadcrumb in css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants