Skip to content

Commit

Permalink
Dev: Ellipsis for long questions in question explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed May 11, 2016
1 parent 7caac9d commit acf5be1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/views/admin/super/_question_explorer.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<?php echo sanitize_html_string(strip_tags($question->title));?>
</strong>
<br/>
<em>
<em class="question-explorer-question">
<?php
echo $question->question;
?>
Expand Down
8 changes: 8 additions & 0 deletions styles/Sea_Green/css/lime-admin-common.css
Original file line number Diff line number Diff line change
Expand Up @@ -1831,6 +1831,14 @@ a.explorer-group:hover,a.explorer-group:focus{
text-decoration:none;
}

.question-explorer-question {

display: inline-block;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
}

.question-explorer-group-name{
display: inline-block;
max-width: 140px;
Expand Down

0 comments on commit acf5be1

Please sign in to comment.