Fix #2421 - Truncate text to ensure the delete icon is visible

a7aaacd82c
This commit is contained in:
BPower0036 2022-10-13 17:05:15 +00:00 committed by GitHub
parent 446fdfd61d
commit b7e16cb700
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1428,7 +1428,7 @@ Logic.registerPanel(P_CONTAINER_ASSIGNMENTS, {
trElement.innerHTML = Utils.escaped`
<td>
<div class="favicon"></div>
<span title="${site.hostname}" class="menu-text hostname"></span>
<span title="${site.hostname}" class="menu-text hostname truncate-text"></span>
<img class="trash-button delete-assignment" src="/img/container-delete.svg" />
</td>`;
trElement.getElementsByClassName("favicon")[0].appendChild(Utils.createFavIconElement(assumedUrl));