Skip to content

Commit

Permalink
Adding ellipsis to breadcrumb. Closes #575
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsielicki committed Feb 2, 2016
1 parent 9590159 commit 761331a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions web-server/css/slycat.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ body
background-color: transparent;
margin: 8px 0 0 0;
padding-left: 0;
padding-right: 0;
height: 36px;
max-width: 566px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.navbar .breadcrumb .project,
.navbar .breadcrumb .model
{
display: inline;
}

.bootstrap-styles .navbar .breadcrumb a
Expand Down
8 changes: 4 additions & 4 deletions web-server/templates/slycat-navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
</div>
<div class="collapse navbar-collapse" id="slycat-navbar-content">

<ol class="breadcrumb navbar-left">
<!-- ko foreach: project -->
<li data-bind="css: {'slycat-unclickable': $parent.model().length == 0}">
<ol class="breadcrumb navbar-left ellipsis" data-bind="css: {'slycat-no-models': model().length == 0}">
<!-- ko foreach: {data:project, afterRender:updateEllipsis} -->
<li class="project" data-bind="css: {'slycat-unclickable': $parent.model().length == 0}">
<a data-bind="text:name,popover:{trigger:'hover',html:true,content:popover()},attr:{href:$parent.server_root + 'projects/' + _id()}"></a>
</li>
<!-- /ko -->
<!-- ko foreach: model -->
<li class="slycat-unclickable"><a data-bind="text:name,popover:{trigger:'hover',html:true,content:$parent.model_popover()}"></a></li>
<li class="slycat-unclickable model"><a data-bind="text:name,popover:{trigger:'hover',html:true,content:$parent.model_popover()}"></a></li>
<!-- /ko -->
</ol>

Expand Down

0 comments on commit 761331a

Please sign in to comment.