Skip to content

Commit

Permalink
webui: Set the device logo and cell to have a max width (librenms#5700)
Browse files Browse the repository at this point in the history
* Set the device logo to have a max width and set the td cell to also have a set width

* Changed the width of the td cell to rather use CSS

* tried something else which allows for a more dynamic approach
  • Loading branch information
InsaneSplash authored and laf committed Feb 14, 2017
1 parent d6495dc commit 3843346
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions html/css/styles.css
Expand Up @@ -2163,6 +2163,22 @@ label {

.device-icon-48h img {
height: 48px;
max-width: 250px;
}

.device-title-bar-1 {
width: 25%;
max-width: 25%;
}

.device-title-bar-2 {
width: 25%;
max-width: 25%;
}

.device-title-bar-3 {
width: 50%;
max-width: 50%;
}

.severity-ok {
Expand Down
5 changes: 5 additions & 0 deletions html/includes/device-header.inc.php
Expand Up @@ -20,6 +20,11 @@
$host_id = get_vm_parent_id($device);

echo '
<colgroup>
<col class="device-title-bar-1">
<col class="device-title-bar-2">
<col class="device-title-bar-3">
</colgroup>
<tr bgcolor="'.$device_colour.'" class="alert '.$class.'">
<td><span class="device-icon-48h">'.getLogoTag($device).'</span></td>
<td>';
Expand Down

0 comments on commit 3843346

Please sign in to comment.