polishing up the imaging

This commit is contained in:
Jakob Ketterl 2019-06-09 22:27:35 +02:00
parent 2053a6b16b
commit c7d969c96e
5 changed files with 11 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -968,11 +968,15 @@ img.openwebrx-mirror-img
}
.openwebrx-meta-slot.active .openwebrx-meta-user-image {
background-image: url("gfx/openwebrx-user.png");
background-image: url("gfx/openwebrx-directcall.png");
width:133px;
height:133px;
}
.openwebrx-meta-slot.active .openwebrx-meta-user-image.group {
background-image: url("gfx/openwebrx-groupcall.png");
}
.openwebrx-meta-slot {
text-align: center;
}

View File

@ -1318,10 +1318,14 @@ function update_metadata(meta) {
var id = "";
var name = "";
var target = "";
var group = false;
if (meta.type && meta.type != "data") {
id = (meta.additional && meta.additional.callsign) || meta.source || "";
name = (meta.additional && meta.additional.fname) || "";
if (meta.type == "group") target = "Talkgroup: ";
if (meta.type == "group") {
target = "Talkgroup: ";
group = true;
}
if (meta.type == "direct") target = "Direct: ";
target += meta.target || "";
$(el).addClass("active");
@ -1331,7 +1335,7 @@ function update_metadata(meta) {
$(el).find(".openwebrx-dmr-id").text(id);
$(el).find(".openwebrx-dmr-name").text(name);
$(el).find(".openwebrx-dmr-target").text(target);
$(el).find(".openwebrx-meta-user-image")[group ? "addClass" : "removeClass"]("group");
}
break;
case 'YSF':