Changeset - 387b8d551003
[Not reviewed]
default
0 4 0
domruf - 8 years ago 2017-07-02 21:14:37
dominikruf@gmail.com
style: rely on css to truncate author name in tables instead of truncating to fixed length

Dynamic truncation allows us in the future to use different length on different
screen sizes.
4 files changed with 10 insertions and 10 deletions:
0 comments (0 inline, 0 general)
kallithea/public/css/style.css
Show inline comments
 
@@ -1282,6 +1282,13 @@ h3.files_location {
 
    text-decoration: none;
 
}
 

	
 
td.author {
 
    overflow: hidden;
 
    text-overflow: ellipsis;
 
    white-space: nowrap;
 
    max-width: 210px;
 
}
 

	
 
.cs_files .progress {
 
    margin-bottom: 0;
 
}
 
@@ -1440,9 +1447,6 @@ tr.out-of-range > td.mid .message > a {
 
}
 

	
 
#graph_content #changesets td {
 
    overflow: hidden;
 
    text-overflow: ellipsis;
 
    white-space: nowrap;
 
    height: 31px;
 
    border-color: #cdcdcd;
 
    text-align: left;
 
@@ -1458,10 +1462,6 @@ tr.out-of-range > td.mid .message > a {
 
    font-size: 0.85em;
 
}
 

	
 
#graph_content tr .author {
 
   width: 105px;
 
}
 

	
 
#graph_content tr .hash {
 
    width: 100px;
 
    font-size: 0.85em;
kallithea/templates/changelog/changelog.html
Show inline comments
 
@@ -96,7 +96,7 @@ ${self.repo_context_bar('changelog', c.f
 
                        </td>
 
                        <td class="author">
 
                            ${h.gravatar(h.email_or_none(cs.author), size=16)}
 
                            <span data-toggle="tooltip" title="${cs.author}" class="user">${h.shorter(h.person(cs.author),22)}</span>
 
                            <span data-toggle="tooltip" title="${cs.author}" class="user">${h.person(cs.author)}</span>
 
                        </td>
 
                        <td class="hash">
 
                            ${h.link_to(h.show_id(cs),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id), class_='changeset_hash')}
kallithea/templates/changeset/changeset_range.html
Show inline comments
 
@@ -36,7 +36,7 @@ ${self.repo_context_bar('changelog')}
 
                    <td>${h.gravatar_div(h.email_or_none(cs.author), size=14)}</td>
 
                    %endif
 
                    <td>${h.link_to(h.short_id(cs.raw_id),h.url('changeset_home',repo_name=c.cs_repo.repo_name,revision=cs.raw_id))}</td>
 
                    <td><div class="author">${h.person(cs.author)}</div></td>
 
                    <td class="author">${h.person(cs.author)}</td>
 
                    <td><span data-toggle="tooltip" title="${h.age(cs.date)}">${cs.date}</span></td>
 
                    <td>
 
                      %if c.statuses:
kallithea/templates/compare/compare_cs.html
Show inline comments
 
@@ -65,7 +65,7 @@
 
        <td><span data-toggle="tooltip" title="${h.age(cs.date)}">${cs.date}</span></td>
 
        <td class="author">
 
            ${h.gravatar(h.email_or_none(cs.author), size=16)}
 
            <span data-toggle="tooltip" title="${cs.author}" class="user">${h.shorter(h.person(cs.author),22)}</span>
 
            <span data-toggle="tooltip" title="${cs.author}" class="user">${h.person(cs.author)}</span>
 
        </td>
 
        <td>${h.link_to(h.show_id(cs),h.url('changeset_home',repo_name=c.cs_repo.repo_name,revision=cs.raw_id), class_='changeset_hash')}</td>
 
        <td>
0 comments (0 inline, 0 general)