Some CSS additions (#1280)

This commit is contained in:
Cønstantine Kovalensky 2023-12-29 00:11:44 +04:00 committed by GitHub
commit 2f8952b3bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View file

@ -1252,7 +1252,7 @@ function get_user_torrent_client(string $peer_id): mixed
}
if (!empty($bestMatch)) {
return '<img width="auto" height="auto" style="display:inline!important;vertical-align:middle" src="' . FULL_URL . 'styles/images/clients/' . $bestMatch . $iconExtension . '" alt="' . $bestMatch . '" title="' . $peer_id . '">';
return '<img class="clients" src="' . FULL_URL . 'styles/images/clients/' . $bestMatch . $iconExtension . '" alt="' . $bestMatch . '" title="' . $peer_id . '">';
}
return $peer_id;
@ -1513,6 +1513,7 @@ function render_flag($code) {
'WS' => 'Samoa',
'XK' => 'Kosovo',
'YE' => 'Yemen',
'YU' => 'Yugoslavia',
'YT' => 'Mayotte',
'ZA' => 'South Africa',
'ZM' => 'Zambia',

View file

@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 300">
<path fill="#003893" d="M0 0h600v300H0z"/>
<path fill="#fff" d="M0 100h600v200H0z"/>
<path fill="#de0000" d="M0 200h600v100H0z"/>
<path d="M300 60l-21 64h-67l55 40-21 64 55-39 55 39-21-64 55-40h-67z" fill="#de0000" stroke="#fcd115" stroke-width="3"/>
</svg>

After

Width:  |  Height:  |  Size: 321 B

View file

@ -610,6 +610,13 @@ table.peers td {
border: 1px #A5AFB4 solid;
}
.clients {
width: auto;
height: auto;
display: inline!important;
vertical-align:middle;
}
.dl_list {
}