Skip to content
Snippets Groups Projects
Commit f4dfdb23 authored by Chris Lawton's avatar Chris Lawton
Browse files

show truncated emails in all submissions table on hover

parent a3c86ec0
No related branches found
No related tags found
No related merge requests found
...@@ -27,9 +27,12 @@ ...@@ -27,9 +27,12 @@
</td> </td>
<td> <td>
<ul class="list list--no-margin"> <ul class="list list--no-margin">
{% for review in row.record.reviews.all %} {% for review in row.record.reviews.all %}
<li class="list__item list__item--reviewer"><strong>{{ review.author }}</strong> <span>{{ review.get_recommendation_display }}</span></li> <li class="list__item list__item--reviewer">
{% endfor %} <span class="list__item--reviewer-name">{{ review.author }}</span>
<span class="list__item list__item--reviewer-outcome">{{ review.get_recommendation_display }}</span>
</li>
{% endfor %}
</ul> </ul>
</td> </td>
</tr> </tr>
......
.list { .list {
$root: &;
&--no-margin { &--no-margin {
margin: 0; margin: 0;
} }
...@@ -8,11 +10,30 @@ ...@@ -8,11 +10,30 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
max-width: 150px; max-width: 150px;
}
&--reviewer-name {
max-width: 100px;
overflow: hidden;
font-weight: $weight--bold;
text-overflow: ellipsis;
span { // show truncated emails on hover
font-weight: $weight--normal; &:hover {
color: $color--tomato; position: absolute;
max-width: initial;
overflow: visible;
background-color: #f3fafe;
+ #{$root}__item--reviewer-outcome {
width: 100%;
text-align: right;
}
} }
} }
&--reviewer-outcome {
color: $color--tomato;
}
} }
} }
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