From 0bc3502142a16b437aa871f19d96859cc9b988f1 Mon Sep 17 00:00:00 2001 From: Leon Date: Mon, 5 Aug 2024 21:48:49 +0200 Subject: [PATCH] Tweak the highlight options Maybe in a future release we can let the user choose these settings --- src/content.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content.js b/src/content.js index 7b61201..aa1a2c1 100644 --- a/src/content.js +++ b/src/content.js @@ -219,11 +219,11 @@ const handleTurboFrameRender = (event) => { const turboFrame = event.target const overlayClassName = `hotwire-dev-tools-highlight-overlay-turbo-frame-${turboFrame.id}` const color = devTool.options.turbo.highlightFramesOutlineColor - addHighlightOverlayToElements([turboFrame], color, overlayClassName, "0.2") + addHighlightOverlayToElements([turboFrame], color, overlayClassName, "0.1") setTimeout(() => { removeHighlightOverlay(`.${overlayClassName}`) - }, 400) + }, 350) } const renderDetailPanel = () => {