From 13e7980071ab11b07b5d473e43506c6cb4ab637e Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Mon, 12 Oct 2026 12:57:49 +0200 Subject: fix: keep the photo lightbox's close button on a phone screen The bar was 457 px wide and pushed the close button to 397..437 px, off a 360 px phone. Delete leaves the lightbox (it stays on the tile's menu: right-click, or press and hold), and below 768 px the bar drops the file name, the zoom label and 100%. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-hub/tests/test_photo_delete.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'packages/meshbay-hub/tests/test_photo_delete.py') diff --git a/packages/meshbay-hub/tests/test_photo_delete.py b/packages/meshbay-hub/tests/test_photo_delete.py index bcc943f..bd22cbe 100644 --- a/packages/meshbay-hub/tests/test_photo_delete.py +++ b/packages/meshbay-hub/tests/test_photo_delete.py @@ -1,10 +1,11 @@ """ Deleting a photo from the Photos app (harness/photo_delete_probe.py). -On a right-clicked tile and in the lightbox's bar, which is how a phone gets -at it. Offered on the rule Files applies and the node enforces: the node's -operator, or whoever uploaded the photo. Never without the page's own -confirmation, and never from Search, which is read-only. +On a tile's menu — right-click, or press and hold on a phone — and not in the +lightbox's bar, where it pushed the close button off a phone's screen. +Offered on the rule Files applies and the node enforces: the node's operator, +or whoever uploaded the photo. Never without the page's own confirmation, and +never from Search, which is read-only. """ import json @@ -48,11 +49,9 @@ def test_the_operator_may_delete_any_photo(cases): assert cases["operator"]["delete_offered"] == [True, True, True] -def test_the_lightbox_deletes_and_shows_the_next_photo(cases): +def test_the_lightbox_offers_no_delete(cases): c = cases["lightbox"] - assert c["button"] and c["dialog_on_top"] - assert c["deleted"] == ["p1"] - assert c["open"] and c["before"] == "beach.jpg" and c["after"] == "dunes.jpg" + assert c["open"] and not c["button"] def test_search_results_offer_no_delete(cases): -- cgit v1.2.3