From 4b1a64d29891bc99c738e616fea6772475a7a1e6 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Mon, 10 Aug 2026 09:59:30 -0400 Subject: [PATCH] warranty: stop the machine map preview being clipped on the last row The bottom row's preview was cut off behind the pagination controls. .table-container sets overflow-x: auto, and ANY non-visible overflow makes an element a clipping context, so the absolutely-positioned preview was cropped at the container's edge. The last row had nowhere to open into. The preview is now positioned fixed from the chip's bounding rect, which escapes the clip entirely, and flips ABOVE the chip when there is not room below. It also clamps horizontally, since the column sits well to the right on a wide table and the panel is nearly 300px. Height is measured from the rendered element rather than assumed: it depends on the blueprint's aspect ratio, which differs per site. That means one tick where the element exists but is unplaced, so it starts hidden and is revealed once positioned - otherwise it flashed in the corner of the screen. Also sets white-space: normal. The table sets nowrap for its cells, which the preview inherited and which ran the location line off the panel. --- .../frontend/components/MachineMapChip.vue | 57 ++++++++++++++++--- 1 file changed, 49 insertions(+), 8 deletions(-) diff --git a/plugins/warranty/frontend/components/MachineMapChip.vue b/plugins/warranty/frontend/components/MachineMapChip.vue index 87d5ca1..8bfbe9f 100644 --- a/plugins/warranty/frontend/components/MachineMapChip.vue +++ b/plugins/warranty/frontend/components/MachineMapChip.vue @@ -2,7 +2,8 @@ - + {{ machine.name || machine.machinenumber }} {{ machine.locationname }} @@ -24,7 +25,7 @@ - + {{ machine.name || machine.machinenumber }} {{ machine.locationname || 'Not placed on the floor map' }} @@ -33,7 +34,7 @@