From 28db40609d675eeeb8a9cd98b73209da5b7bc3e0 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Thu, 10 Jul 2025 19:19:00 -0400 Subject: [PATCH] fix: redesign read page status as bottom-right tooltip --- src/uncloseai-modal-builtin.css | 54 +++++++++++++++++++++++++++------ src/uncloseai-modal-pico.css | 54 +++++++++++++++++++++++++++------ 2 files changed, 90 insertions(+), 18 deletions(-) diff --git a/src/uncloseai-modal-builtin.css b/src/uncloseai-modal-builtin.css index 305b53e..8665496 100644 --- a/src/uncloseai-modal-builtin.css +++ b/src/uncloseai-modal-builtin.css @@ -1101,21 +1101,57 @@ dialog#uncloseai-embedded-modal[data-theme="dark"] .user-message { background: rgba(255, 255, 255, 0.3); } -/* Page reader status div */ +/* Page reader status div - tooltip style */ .uncloseai-page-reader-status { position: fixed; - top: 10px; - right: 10px; - padding: 10px; - background: rgba(0, 0, 0, 0.8); + bottom: 80px; + right: 20px; + padding: 8px 12px; + background: rgba(0, 0, 0, 0.85); color: white; - border-radius: 5px; - z-index: 1000; + border-radius: 6px; + z-index: 1001; + font-size: 12px; + line-height: 1.3; + max-width: 280px; + backdrop-filter: blur(4px); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); + display: flex; + align-items: center; + gap: 8px; + flex-wrap: wrap; + animation: tooltip-fade-in 0.3s ease-out; } -/* Button with left margin */ +@keyframes tooltip-fade-in { + from { + opacity: 0; + transform: translateY(10px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +/* Button with left margin - tooltip style buttons */ .uncloseai-btn-margin-left { - margin-left: 10px; + margin-left: 8px; + padding: 4px 8px; + background: rgba(255, 255, 255, 0.15); + border: 1px solid rgba(255, 255, 255, 0.25); + border-radius: 4px; + color: white; + cursor: pointer; + font-size: 11px; + transition: all 0.2s; + white-space: nowrap; +} + +.uncloseai-btn-margin-left:hover { + background: rgba(255, 255, 255, 0.25); + border-color: rgba(255, 255, 255, 0.4); + transform: translateY(-1px); } /* =================================================================== */ diff --git a/src/uncloseai-modal-pico.css b/src/uncloseai-modal-pico.css index b344d70..8b50e11 100644 --- a/src/uncloseai-modal-pico.css +++ b/src/uncloseai-modal-pico.css @@ -1149,21 +1149,57 @@ dialog#uncloseai-embedded-modal[data-theme="dark"] .user-message { background: rgba(255, 255, 255, 0.3) !important; } -/* Page reader status div */ +/* Page reader status div - tooltip style */ .uncloseai-page-reader-status { position: fixed !important; - top: 10px !important; - right: 10px !important; - padding: 10px !important; - background: rgba(0, 0, 0, 0.8) !important; + bottom: 80px !important; + right: 20px !important; + padding: 8px 12px !important; + background: rgba(0, 0, 0, 0.85) !important; color: white !important; - border-radius: 5px !important; - z-index: 1000 !important; + border-radius: 6px !important; + z-index: 1001 !important; + font-size: 12px !important; + line-height: 1.3 !important; + max-width: 280px !important; + backdrop-filter: blur(4px) !important; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important; + display: flex !important; + align-items: center !important; + gap: 8px !important; + flex-wrap: wrap !important; + animation: tooltip-fade-in 0.3s ease-out !important; } -/* Button with left margin */ +@keyframes tooltip-fade-in { + from { + opacity: 0; + transform: translateY(10px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +/* Button with left margin - tooltip style buttons */ .uncloseai-btn-margin-left { - margin-left: 10px !important; + margin-left: 8px !important; + padding: 4px 8px !important; + background: rgba(255, 255, 255, 0.15) !important; + border: 1px solid rgba(255, 255, 255, 0.25) !important; + border-radius: 4px !important; + color: white !important; + cursor: pointer !important; + font-size: 11px !important; + transition: all 0.2s !important; + white-space: nowrap !important; +} + +.uncloseai-btn-margin-left:hover { + background: rgba(255, 255, 255, 0.25) !important; + border-color: rgba(255, 255, 255, 0.4) !important; + transform: translateY(-1px) !important; } /* =================================================================== */