diff --git a/CHANGELOG.md b/CHANGELOG.md
index c1788ca6a..28cdc1306 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,7 @@ If you manage other ITFlow installs, the manager and its instances can be update
### Bug Fixes
- Managed Instances: a manager behind a web application firewall - ModSecurity with the OWASP Core Rule Set, say - could answer an instance's check-ins with 403, as the cron command and error text in its report looked like an attack, and the instance's Managed By page said "The manager answered 403". Check-ins are now sent encoded, so nothing needs excluding. An instance sends them that way once its manager says it reads them, and a manager still reads a plain check-in, so either side can be updated first.
+- Racks: on a rack's drawing, clicking an asset opens its page, and the pen for editing it there - to move it or take it out of the rack - only showed while you pointed at it, at the far right. It was easy to miss, and on a touch screen it never showed. The pen is now always on each asset, in a holder's slot too when the slot is wide enough, and an asset's own page has Edit or remove under Rack, in Where & who.
### Developer Updates
diff --git a/agent/asset.php b/agent/asset.php
index f08efb801..e17c00739 100644
--- a/agent/asset.php
+++ b/agent/asset.php
@@ -734,7 +734,13 @@ if (mysqli_num_rows($sql) == 0) {
Rack
- = $asset_rack_name ?>= $asset_rack_position ?>
+
+ = $asset_rack_name ?>= $asset_rack_position ?>
+
+
+ Edit or remove
+
+
Assigned
diff --git a/agent/includes/rack_elevation.php b/agent/includes/rack_elevation.php
index b46e7de13..34a9e0d93 100644
--- a/agent/includes/rack_elevation.php
+++ b/agent/includes/rack_elevation.php
@@ -86,6 +86,10 @@ $elevation_rail = $elevation_descending ? range(1, $elevation_rack_units) : rang
if ($block['asset_archived']) {
$block_classes .= ' is-archived';
}
+ // An asset opens its page, so its pen is the way to edit or remove it - always shown, with room kept for it
+ if ($elevation_can_edit && $block['asset_id'] && !$block['ghost'] && !$block['slots']) {
+ $block_classes .= ' has-edit';
+ }
$block_title = $block['name'] . ' - ' . html_entity_decode($block['position']) . ($block['meta'] ? " - {$block['meta']}" : '');
$block_drags = $elevation_can_edit && !$block['ghost'];
if ($block_drags) {
@@ -140,7 +144,7 @@ $elevation_rail = $elevation_descending ? range(1, $elevation_rack_units) : rang
$child_close = '';
}
?>
- draggable="true" data-rack-drag="unit" data-rack-child="1" data-rack-id="= $child['id'] ?>" data-rack-holder="= $block['id'] ?>" data-rack-slot="= $cell['slot'] ?>" data-rack-height="= $block['height'] ?>" data-rack-full="= $block['full_depth'] ? 1 : 0 ?>" data-rack-from="= $block['face'] ?>" data-rack-start="= $block['start'] ?>">
= $child_open ?>
= $child['name'] ?>
diff --git a/agent/rack.php b/agent/rack.php
index 83ae00ef9..2862c5a31 100644
--- a/agent/rack.php
+++ b/agent/rack.php
@@ -179,7 +179,7 @@ if (mysqli_num_rows($sql) == 0) {
Elevation
- Click an empty U to add something there, or drag an item to move it
+ Click an empty U to add something there, drag an item to move it, or use an asset's pen to edit or remove it
diff --git a/css/itflow_custom.css b/css/itflow_custom.css
index 03a1f8b2b..c5a3a9df3 100644
--- a/css/itflow_custom.css
+++ b/css/itflow_custom.css
@@ -3983,15 +3983,16 @@ button.itflow-rack-item-body:hover {
background-color: rgba(0, 0, 0, .35);
font-size: .6rem;
color: #fff;
- opacity: 0;
+ opacity: .75;
transition: opacity .12s ease-in-out;
}
.itflow-rack-item:hover .itflow-rack-item-edit,
.itflow-rack-item:focus-within .itflow-rack-item-edit {
opacity: 1;
}
-.itflow-rack-item:has(.itflow-rack-item-edit):hover .itflow-rack-item-pos {
- visibility: hidden;
+/* An asset's pen is always there - clicking the asset opens its page - so its position sits clear of it */
+.itflow-rack-item.has-edit .itflow-rack-item-body {
+ padding-right: 2rem;
}
.itflow-rack-item-edit:hover {
background-color: rgba(0, 0, 0, .55);
@@ -4142,16 +4143,23 @@ button.itflow-rack-cell-body:hover {
background-color: rgba(0, 0, 0, .4);
font-size: .55rem;
color: #fff;
+ opacity: .75;
+}
+.itflow-rack-cell:hover .itflow-rack-cell-edit,
+.itflow-rack-cell:focus-within .itflow-rack-cell-edit {
+ opacity: 1;
}
.itflow-rack-cell-edit:hover {
background-color: rgba(0, 0, 0, .6);
}
-/* The pen only where the slot is wide enough for it and the name */
+/* The pen, always there, where the slot is wide enough for it and the name - the name kept clear of it */
@container (min-width: 4.5rem) {
- .itflow-rack-cell:hover .itflow-rack-cell-edit,
- .itflow-rack-cell:focus-within .itflow-rack-cell-edit {
+ .itflow-rack-cell-edit {
display: flex;
}
+ .itflow-rack-cell.has-edit .itflow-rack-cell-body {
+ padding-right: 1.45rem;
+ }
}
.itflow-rack-cell.is-archived {
opacity: .55;