~edwargix/git.sr.ht

0cbe128a93129e90714955022ef8f381effe94d0 — Drew DeVault 4 years ago 4832fcc
tree: truncate latest commit to avoid wrapping nav
2 files changed, 21 insertions(+), 5 deletions(-)

M gitsrht/templates/tree.html
M scss/main.scss
M gitsrht/templates/tree.html => gitsrht/templates/tree.html +4 -5
@@ 5,11 5,11 @@
{% endblock %}
{% block content %}
<div class="header-extension">
  <div class="container">
    <span style="padding-left: 1rem">
  <div class="container tree-header">
    <div class="breadcrumb">
      {{ utils.breadcrumb(ref, repo, path, entry, view, path_join, stat, pygit2, humanize) }}
    </span>
    <div class="pull-right">
    </div>
    <div class="commit-info">
      <a
        href="{{url_for("repo.commit",
          owner=repo.owner.canonical_name,


@@ 28,7 28,6 @@
        {{ commit_time(commit) | date }}
      </span>
    </div>
    <div class="clearfix"></div>
  </div>
</div>
<div class="container">

M scss/main.scss => scss/main.scss +17 -0
@@ 336,6 336,23 @@ img {
  }
}

.tree-header {
  display: flex;

  .breadcrumb {
    white-space: nowrap;
    flex-grow: 1;
  }

  .commit-info {
    margin-left: 1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    min-width: 0;
  }
}

dl {
  dd {
    text-overflow: ellipsis;