fix(ui): remove cursor-following recording dot — distracting and redundant with status bar indicator
This commit is contained in:
@@ -384,8 +384,6 @@ textarea, input, [data-no-transition] {
|
||||
animation: sinhala-spin 2s linear infinite;
|
||||
}
|
||||
|
||||
/* Recording indicator dot (follows mouse via JS, see +layout.svelte) */
|
||||
|
||||
/* === Reduced Motion === */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
|
||||
@@ -27,15 +27,6 @@
|
||||
$sveltePage.url.pathname.startsWith("/viewer")
|
||||
);
|
||||
|
||||
// Recording indicator dot (follows mouse)
|
||||
let mouseX = $state(0);
|
||||
let mouseY = $state(0);
|
||||
|
||||
function handleMouseMove(e) {
|
||||
mouseX = e.clientX;
|
||||
mouseY = e.clientY;
|
||||
}
|
||||
|
||||
// Theme — migrate from old class-based to new data-attribute system
|
||||
// The preferences store handles DOM application via data-theme attribute
|
||||
$effect(() => {
|
||||
@@ -262,14 +253,8 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
<svelte:window onmousemove={handleMouseMove} onkeydown={handleKeydown} />
|
||||
<svelte:window onkeydown={handleKeydown} />
|
||||
|
||||
{#if page.recording}
|
||||
<div
|
||||
class="fixed w-3 h-3 rounded-full bg-danger animate-pulse-soft pointer-events-none"
|
||||
style="left: {mouseX + 18}px; top: {mouseY + 18}px; z-index: 100;"
|
||||
></div>
|
||||
{/if}
|
||||
|
||||
{#if isSecondaryWindow}
|
||||
<!-- Secondary windows (float, viewer) render children only — no shell chrome -->
|
||||
|
||||
Reference in New Issue
Block a user