Preliminary changes for non-scrolling header.

This commit is contained in:
Retro_Guy 2024-12-03 02:37:55 -07:00
parent 7c2c0b24cb
commit fc4d9b27e8
4 changed files with 35 additions and 18 deletions

View File

@ -52,6 +52,7 @@ if ((isset($_SESSION['theme'])) && file_exists($rootdir . '/common/themes/' . $d
}
echo '</head><body>';
echo '<div class="header_top">';
echo '<table class="np_header_table_top">';
echo '<tr class="np_header_bar_top">';
@ -121,7 +122,7 @@ foreach ($menulist as $menu) {
echo '</td>';
}
echo '</tr></table>';
echo '</div><div class="scroll">';
$config_name = basename(getcwd());
if (!isset($OVERRIDES['disable_msgid_search']) || $OVERRIDES['disable_msgid_search'] == false) {

View File

@ -680,7 +680,7 @@ input[id^=trigger_headers]:checked+.display_headers_on {
color: var(--color-text);
border: solid 1px var(--color-link);
word-wrap: break-word;
position: absolute;
z-index: 1000;
font-size: 1.3em;
width: 98%;
@ -1055,9 +1055,27 @@ textarea.configuration {
}
}
.header_top {
flex-grow: 0;
}
.scroll {
flex-grow: 1;
overflow: auto;
}
/* Desktop Styles */
@media only screen and (min-device-width: 821px) {
body {
/* disabling body scrolling */
display: flex;
flex-direction: column;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
margin: auto;
margin-left: 10px;
margin-right: 10px;
color: var(--color-text);

View File

@ -528,10 +528,10 @@ function show_header($head, $group, $local_poster = false)
echo '</div>';
}
echo '<p id="' . $head->id . 'copy"';
echo ' style="position: absolute; z-index: -9999;">' . htmlspecialchars($head->id) . '</p>';
echo '<p id="' . $head->number . 'copy"';
echo ' style="position: absolute; z-index: -9999;">' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '</p>';
echo '<textarea id="' . $head->id . 'copy"';
echo ' style="position: fixed; height: 0; overflow: hidden; border:none;">' . htmlspecialchars($head->id) . '</textarea>';
echo '<textarea id="' . $head->number . 'copy"';
echo ' style="position: fixed; height: 0; overflow: hidden; border:none;">' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '</textarea>';
echo '<form><span class="short_header_javascript_links">';
if ($article_show["trigger_headers"]) {
@ -555,7 +555,6 @@ function show_header($head, $group, $local_poster = false)
<?php
echo '</span></form>';
echo '</div>';
echo '</div>';
}
function show_header_short($head, $group, $local_poster = false)
@ -644,10 +643,10 @@ function show_header_short($head, $group, $local_poster = false)
echo '</div>';
}
echo '<p id="' . $head->id . 'copy"';
echo ' style="position: absolute; z-index: -9999;">' . htmlspecialchars($head->id) . '</p>';
echo '<p id="' . $head->number . 'copy"';
echo ' style="position: absolute; z-index: -9999;">' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '</p>';
echo '<textarea id="' . $head->id . 'copy"';
echo ' style="position: fixed; height: 0; overflow: hidden; border:none;">' . htmlspecialchars($head->id) . '</textarea>';
echo '<textarea id="' . $head->number . 'copy"';
echo ' style="position: fixed; height: 0; overflow: hidden; border:none;">' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '</textarea>';
echo '<form><span class="short_header_javascript_links">';
if ($article_show["trigger_headers"]) {
@ -698,8 +697,6 @@ function show_header_short($head, $group, $local_poster = false)
echo '</div>';
}
echo '</div>';
// echo '</p>';
// echo '</div>';
}
function show_header_short_with_subject($head, $group, $local_poster = false)
@ -715,10 +712,10 @@ function show_header_short_with_subject($head, $group, $local_poster = false)
echo '<div class="np_article_header">';
// Display javascript links and time interval
echo '<p id="' . $head->id . 'copy"';
echo ' style="position: absolute; z-index: -9999;">' . htmlspecialchars($head->id) . '</p>';
echo '<p id="' . $head->number . 'copy"';
echo ' style="position: absolute; z-index: -9999;">' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '</p>';
echo '<textarea id="' . $head->id . 'copy"';
echo ' style="position: fixed; height: 0; overflow: hidden; border:none;">' . htmlspecialchars($head->id) . '</textarea>';
echo '<textarea id="' . $head->number . 'copy"';
echo ' style="position: fixed; height: 0; overflow: hidden; border:none;">' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '</textarea>';
echo '<table class="show_header_short_with_subject_table">';

View File

@ -15,4 +15,5 @@ echo '<a href="https://gitlab.com/rslight-public/rocksolid-light" target=_blank>
echo '&nbsp;';
echo '<a href="http://git.fwfwqtpi2ofmehzdxe3e2htqfmhwfciwivpnsztv7dvpuamhr72ktlqd.onion/novabbs/rocksolid-light" target=_blank>tor</a>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div></body></html>';