Add fullscreen player toggle tooltip to sidebar (#114)
This commit is contained in:
parent
4f21c26e5d
commit
bc2624bffd
2 changed files with 19 additions and 14 deletions
|
|
@ -140,7 +140,7 @@ export const LeftControls = () => {
|
|||
onClick={handleToggleFullScreenPlayer}
|
||||
>
|
||||
<Tooltip
|
||||
label="Open fullscreen player"
|
||||
label="Toggle fullscreen player"
|
||||
openDelay={500}
|
||||
>
|
||||
{currentSong?.imageUrl ? (
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { MouseEvent } from 'react';
|
|||
import { Stack, Accordion, Center, Group, Divider, Box } from '@mantine/core';
|
||||
import { closeAllModals, openModal } from '@mantine/modals';
|
||||
import { AnimatePresence, motion } from 'framer-motion';
|
||||
import { Button, MotionStack, Spinner } from '/@/renderer/components';
|
||||
import { Button, MotionStack, Spinner, Tooltip } from '/@/renderer/components';
|
||||
import {
|
||||
RiAddFill,
|
||||
RiAlbumFill,
|
||||
|
|
@ -287,6 +287,10 @@ export const Sidebar = () => {
|
|||
role="button"
|
||||
transition={{ duration: 0.3, ease: 'easeInOut' }}
|
||||
onClick={expandFullScreenPlayer}
|
||||
>
|
||||
<Tooltip
|
||||
label="Toggle fullscreen player"
|
||||
openDelay={500}
|
||||
>
|
||||
{upsizedImageUrl ? (
|
||||
<SidebarImage
|
||||
|
|
@ -301,6 +305,7 @@ export const Sidebar = () => {
|
|||
/>
|
||||
</Center>
|
||||
)}
|
||||
</Tooltip>
|
||||
<Button
|
||||
compact
|
||||
opacity={0.8}
|
||||
|
|
|
|||
Reference in a new issue