mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-21 22:15:40 +00:00
fix(player-bar): use data-tooltip on time toggle (not native title)
Native `title` attribute renders an unstyled OS tooltip and bypasses the TooltipPortal — convention in this codebase is `data-tooltip="…"` so the hover hint matches every other player-bar control. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -322,7 +322,7 @@ export default function PlayerBar() {
|
|||||||
setLocalShowRemaining(newVal);
|
setLocalShowRemaining(newVal);
|
||||||
useThemeStore.getState().setShowRemainingTime(newVal);
|
useThemeStore.getState().setShowRemainingTime(newVal);
|
||||||
}}
|
}}
|
||||||
title={localShowRemaining ? t('player.showDuration') : t('player.showRemainingTime')}
|
data-tooltip={localShowRemaining ? t('player.showDuration') : t('player.showRemainingTime')}
|
||||||
>
|
>
|
||||||
{localShowRemaining ? <RemainingTime duration={duration} /> : formatTime(duration)}
|
{localShowRemaining ? <RemainingTime duration={duration} /> : formatTime(duration)}
|
||||||
<ArrowLeftRight size={10} style={{ marginLeft: 4, opacity: 0.6 }} />
|
<ArrowLeftRight size={10} style={{ marginLeft: 4, opacity: 0.6 }} />
|
||||||
|
|||||||
Reference in New Issue
Block a user