Command snapshot monospaced font

This commit is contained in:
Calvo 2022-03-15 09:21:34 +01:00
parent 1ee2387d6c
commit 6067f356e9
2 changed files with 7 additions and 1 deletions

View File

@ -1214,3 +1214,7 @@ input[type="image"] {
.databox_color { .databox_color {
background-color: transparent !important; background-color: transparent !important;
} }
.mono {
font-family: source-code, mono, monospace;
}

View File

@ -81,6 +81,8 @@ if (!check_acl_one_of_groups($config['id_user'], $all_groups, 'AR')) {
echo '<meta http-equiv="refresh" content="'.$refresh.'; URL='.$query.'" />'; echo '<meta http-equiv="refresh" content="'.$refresh.'; URL='.$query.'" />';
if ($config['style'] === 'pandora_black' && !is_metaconsole()) { if ($config['style'] === 'pandora_black' && !is_metaconsole()) {
echo '<link rel="stylesheet" href="../../include/styles/pandora_black.css" type="text/css"/>'; echo '<link rel="stylesheet" href="../../include/styles/pandora_black.css" type="text/css"/>';
} else {
echo '<link rel="stylesheet" href="../../include/styles/pandora.css" type="text/css"/>';
} }
} }
?> ?>
@ -100,7 +102,7 @@ if (!check_acl_one_of_groups($config['id_user'], $all_groups, 'AR')) {
$last_data = preg_replace('/>/', '&gt;', $last_data); $last_data = preg_replace('/>/', '&gt;', $last_data);
$last_data = preg_replace('/\n/i', '<br>', $last_data); $last_data = preg_replace('/\n/i', '<br>', $last_data);
$last_data = preg_replace('/\s/i', '&nbsp;', $last_data); $last_data = preg_replace('/\s/i', '&nbsp;', $last_data);
echo "<div id='result_div' class='result_div'>"; echo "<div id='result_div' class='result_div mono'>";
echo $last_data; echo $last_data;
echo '</div>'; echo '</div>';
?> ?>