Add ellipsis to long subjects in threads view and change some css in same.
This commit is contained in:
parent
1b71bd16c6
commit
909f79a172
|
@ -553,20 +553,6 @@ input[id^=trigger_headers]:checked+.display_headers_on {
|
|||
color: var(--color-visited);
|
||||
}
|
||||
|
||||
/* Attribution below Subject */
|
||||
.thread_start_author_info {
|
||||
float: left;
|
||||
box-sizing: border-box;
|
||||
padding: 6px;
|
||||
margin-bottom: 0;
|
||||
text-decoration: none;
|
||||
color: var(--color-highlight);
|
||||
text-align: left;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 0.8em;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
/* Article age colors. Set these at top of this file */
|
||||
.group_display_message_count_1 {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
|
@ -1078,10 +1064,63 @@ td.np_thread_line2 {
|
|||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Text inside a Line */
|
||||
span.np_thread_line_text,
|
||||
td.np_thread_line_text {
|
||||
font-size: 1em;
|
||||
/* Attribution below Subject */
|
||||
.thread_start_author_info {
|
||||
float: left;
|
||||
box-sizing: border-box;
|
||||
padding: 6px;
|
||||
margin-bottom: 0;
|
||||
text-decoration: none;
|
||||
color: var(--color-highlight);
|
||||
text-align: left;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 0.8em;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
/* Text inside a Line in threads.php */
|
||||
span.np_thread_line_lastmessage_text_author,
|
||||
td.np_thread_line_text_author {
|
||||
float: left;
|
||||
box-sizing: border-box;
|
||||
padding: 1px;
|
||||
margin-bottom: 0;
|
||||
text-decoration: none;
|
||||
color: var(--color-highlight);
|
||||
font-size: 1.1em;
|
||||
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
span.np_thread_line_lastmessage_text_date,
|
||||
td.np_thread_line_text_date {
|
||||
float: left;
|
||||
box-sizing: border-box;
|
||||
padding: 1px;
|
||||
margin-bottom: 0;
|
||||
text-decoration: none;
|
||||
color: var(--color-highlight);
|
||||
font-size: 2em;
|
||||
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
span.np_thread_line_text_subject,
|
||||
td.np_thread_line_text_subject {
|
||||
width: 100%;
|
||||
float: left;
|
||||
box-sizing: border-box;
|
||||
padding: 1px;
|
||||
margin-bottom: 0;
|
||||
text-decoration: none;
|
||||
color: var(--color-highlight);
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
overflow: hidden;
|
||||
|
|
|
@ -164,7 +164,8 @@ $thread_show["replies"] = false;
|
|||
$thread_show["lastdate"] = true; // makes only sense with $thread_show["replies"]=false
|
||||
$thread_show["threadsize"] = true;
|
||||
$thread_show["latest"] = true;
|
||||
$thread_maxSubject = 80;
|
||||
$thread_maxSubject = 120; // will become deprecated
|
||||
|
||||
$maxfetch = 1000;
|
||||
$maxarticles = 0;
|
||||
$maxarticles_extra = 0;
|
||||
|
|
|
@ -977,15 +977,15 @@ function thread_show_recursive(&$headers, &$liste, $depth, $tree, $group, $artic
|
|||
$output .= '<td class="np_thread_line_text"><tt>' . '<span class="np_thread_line_text">' . thread_format_author($c, $group, $lastmessage) . '</span></tt></td>';
|
||||
$output .= "</tr>";
|
||||
break;
|
||||
case 7: // thread, table, graphic
|
||||
case 7: // thread, table, graphic THIS RSLIGHT IS DEFAULT and is only case currently supported
|
||||
$output .= '<tr class="' . $lineclass;
|
||||
$output .= '">';
|
||||
if ($thread_show["date"])
|
||||
$output .= '<td class="' . $lineclass . '">' . '<span class="np_thread_line_text">' . thread_format_date($c) . " " . '</span></td>';
|
||||
// if ($thread_show["date"])
|
||||
// $output .= '<td class="' . $lineclass . '">' . '<span class="np_thread_line_lastmessage_text_date">' . thread_format_date($c) . " " . '</span></td>';
|
||||
$output .= '<td class="' . $lineclass . '">';
|
||||
$output .= thread_show_treegraphic($newtree);
|
||||
$output .= '<span class="np_thread_line_text_subject">' . thread_show_treegraphic($newtree);
|
||||
if ($thread_show["subject"]) {
|
||||
$output .= '<span class="np_thread_line_text"> ' . thread_format_subject($c, $group, $highlight) . '</span>';
|
||||
$output .= ' ' . thread_format_subject($c, $group, $highlight) . '</span>';
|
||||
}
|
||||
$output .= '</td>';
|
||||
if ($thread_show["threadsize"]) {
|
||||
|
@ -993,7 +993,7 @@ function thread_show_recursive(&$headers, &$liste, $depth, $tree, $group, $artic
|
|||
$output .= '<td class="' . $lineclass . '">' . $replies_count . '</td>';
|
||||
}
|
||||
if ($thread_show["author"])
|
||||
$output .= '<td class="' . $lineclass . '">' . '<span class="np_thread_line_text">' . thread_format_author($c, $group, $lastmessage) . '</span></td>';
|
||||
$output .= '<td class="' . $lineclass . '">' . '<span class="np_thread_line_lastmessage_text_author">' . thread_format_author($c, $group, $lastmessage) . '</span></td>';
|
||||
$output .= "</tr>";
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue