chg: [peridioc_notification] Small UI improvement for email rendering

pull/8579/head
Sami Mokaddem 2022-09-12 15:02:52 +02:00
parent 43db6f02ff
commit 111dc2727b
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 5 additions and 4 deletions

View File

@ -354,6 +354,7 @@ if (!function_exists('computeLinePositions')) {
}
.x-axis-label {
font-size: 12px;
position: absolute;
white-space: nowrap;
translate: -50%;
@ -368,7 +369,7 @@ if (!function_exists('computeLinePositions')) {
padding-left: inherit;
}
.y-axis-container>div {
.y-axis-container > div {
position: relative;
height: 100%;
}
@ -376,7 +377,7 @@ if (!function_exists('computeLinePositions')) {
.y-axis-label {
position: absolute;
white-space: nowrap;
/* transform: translate(-100%, 0%); */
font-size: 12px;
padding: 0 5px;
}

View File

@ -257,7 +257,7 @@ array_splice($mitre_attack_techniques, 10);
<ul>
<?php foreach ($mitre_attack_techniques as $technique => $tag) : ?>
<li>
<span style="padding: 2px 9px; margin-right: 5px; border-radius: 9px; font-weight: bold; background-color: #999; color: #fff;">
<span class="tag" style="background-color: #999; color: #fff; border-radius: 9px; padding: 2px 8px;">
<?= $all_tag_amount[$tag['Tag']['name']] ?>
</span>
<?php
@ -312,7 +312,7 @@ array_splice($mitre_attack_techniques, 10);
<ul>
<?php foreach ($all_tag_amount as $tag_name => $amount) : ?>
<li>
<span style="padding: 2px 9px; margin-right: 5px; border-radius: 9px; font-weight: bold; background-color: #999; color: #fff;">
<span class="tag" style="background-color: #999; color: #fff; border-radius: 9px; padding: 2px 8px;">
<?= $amount ?>
</span>
<?= $this->element('tag', ['tag' => ['Tag' => ['name' => $tag_name, 'colour' => $tag_color_mapping[$tag_name]]]]) ?>