From bf30ca02525d66c420d501024b6189a0e1aca2f7 Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 8 Jul 2024 17:24:18 -0700 Subject: [PATCH] Fix loading cursor bug for new item page preview Specifically, if a movie layer was the top layer, the `cursor: wait` on the preview wouldn't show, because the iframe's *contents* would take priority, and they were using the default cursor. --- app/assets/stylesheets/items/_show.sass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/stylesheets/items/_show.sass b/app/assets/stylesheets/items/_show.sass index 627cbd6f..c8052b7f 100644 --- a/app/assets/stylesheets/items/_show.sass +++ b/app/assets/stylesheets/items/_show.sass @@ -53,6 +53,12 @@ body.items-show position: absolute inset: 0 + // We disable pointer-events most importantly for the iframes, which + // will ignore our `cursor: wait` and show a plain cursor for the + // inside of its own document. But also, the context menus for these + // elements are kinda actively misleading, too! + pointer-events: none + img, iframe width: 100% height: 100%