diff --git a/src/editors/cleanup/control-blocks-container.ts b/src/editors/cleanup/control-blocks-container.ts index a9c6183e4c..d93797e349 100644 --- a/src/editors/cleanup/control-blocks-container.ts +++ b/src/editors/cleanup/control-blocks-container.ts @@ -170,6 +170,18 @@ export class CleanupControlBlocks extends LitElement { >${controlBlock.getAttribute('name')!} + + + + - - - - ${controlBlock.tagName} - ${controlBlock.closest('IED')?.getAttribute('name')} @@ -352,6 +352,17 @@ export class CleanupControlBlocks extends LitElement { --mdc-icon-size: 16px; } + .editItem { + visibility: hidden; + opacity: 0; + } + + .cleanupListItem:hover .editItem { + visibility: visible; + opacity: 1; + transition: visibility 0s, opacity 0.5s linear; + } + .cautionItem { color: var(--yellow); } diff --git a/src/editors/cleanup/datasets-container.ts b/src/editors/cleanup/datasets-container.ts index b8a98141df..adebceaff9 100644 --- a/src/editors/cleanup/datasets-container.ts +++ b/src/editors/cleanup/datasets-container.ts @@ -206,6 +206,17 @@ export class CleanupDatasets extends LitElement { --mdc-icon-size: 16px; } + .editItem { + visibility: hidden; + opacity: 0; + } + + .checkListItem:hover .editItem { + visibility: visible; + opacity: 1; + transition: visibility 0s, opacity 0.5s linear; + } + .cleanupDeleteButton { float: right; } diff --git a/test/unit/editors/cleanup/__snapshots__/control-blocks-container.test.snap.js b/test/unit/editors/cleanup/__snapshots__/control-blocks-container.test.snap.js index 2547555214..9d09bc7364 100644 --- a/test/unit/editors/cleanup/__snapshots__/control-blocks-container.test.snap.js +++ b/test/unit/editors/cleanup/__snapshots__/control-blocks-container.test.snap.js @@ -132,14 +132,6 @@ snapshots["Cleanup: Control Blocks Container With a test file loaded looks like GCB2_NP - - - - + + + + GSEControl - IED1 @@ -174,18 +174,18 @@ snapshots["Cleanup: Control Blocks Container With a test file loaded looks like @@ -213,20 +213,20 @@ snapshots["Cleanup: Control Blocks Container With a test file loaded looks like @@ -252,14 +252,6 @@ snapshots["Cleanup: Control Blocks Container With a test file loaded looks like ReportCb - - - - + + + + ReportControl - IED2 @@ -294,18 +294,18 @@ snapshots["Cleanup: Control Blocks Container With a test file loaded looks like