Skip to content
Snippets Groups Projects
Commit 4fb5564e authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

fix alignment and reduction of breadcrumbs in content bar, fixes #4503

Closes #4503

Merge request studip/studip!3292
parent 20740698
No related branches found
No related tags found
No related merge requests found
......@@ -16,10 +16,9 @@
.contentbar-wrapper-left {
display: flex;
flex: auto;
max-width: calc(100% - 130px);
.contentbar-breadcrumb {
display: flex;
font-size: 1.25em;
line-height: 1.5em;
margin-right: 1em;
......
......@@ -13,11 +13,11 @@
<nav class="contentbar-nav"></nav>
<div class="contentbar-wrapper-left">
<nav class="contentbar-breadcrumb">
<? if (!$toc->isActive()) : ?>
<? if ($toc->isActive()): ?>
<?= $icon->asImg(24, ['class' => 'text-bottom contentbar-icon']) ?>
<? else: ?>
<a href="<?= $toc->getUrl() ?>" title="<?= htmlReady($toc->getTitle()) ?>" class="contentbar-icon">
<? endif ?>
<?= $icon->asImg(24, ['class' => 'text-bottom']) ?>
<? if (!$toc->isActive()) : ?>
</a>
<? endif ?>
<?= $breadcrumbs->render() ?>
......
<? if (!$item->isRoot()) : ?>
<?= $this->render_partial('toc/_toc-item-breadcrumb', ['item' => $item->getParent()]) ?>
<? endif ?>
<li>
<li class="contentbar-breadcrumb-item <? if ($item->isActive()) echo 'contentbar-breadcrumb-item-current'; ?>">
<? if (!$item->isActive()) : ?>
<a class="navigate" href="<?= htmlReady($item->getURL()) ?>">
<? endif ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment