minor CSS tweak

This commit is contained in:
Shish 2015-02-07 22:29:07 +00:00
parent d523781481
commit 610b144fb2

View File

@ -84,15 +84,16 @@ class TagEditTheme extends Themelet {
global $user; global $user;
$h_source = html_escape($image->get_source()); $h_source = html_escape($image->get_source());
$f_source = $this->format_source($image->get_source()); $f_source = $this->format_source($image->get_source());
$style = "overflow: hidden; white-space: nowrap; max-width: 350px; text-overflow: ellipsis;";
return " return "
<tr> <tr>
<th>Source</th> <th>Source</th>
<td> <td>
".($user->can("edit_image_source") ? " ".($user->can("edit_image_source") ? "
<span class='view' style='overflow: hidden; white-space: nowrap;'>$f_source</span> <div class='view' style='$style'>$f_source</div>
<input class='edit' type='text' name='tag_edit__source' value='$h_source'> <input class='edit' type='text' name='tag_edit__source' value='$h_source'>
" : " " : "
<span style='overflow: hidden; white-space: nowrap;'>$f_source</span> <div style='$style'>$f_source</div>
")." ")."
</td> </td>
</tr> </tr>