Skip to content

Commit

Permalink
merge with our fork because pyx forgot to add it
Browse files Browse the repository at this point in the history
  • Loading branch information
iiPythonx committed Sep 1, 2024
1 parent e3f2c1f commit fda295c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/renderer/features/player/components/left-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const PlayerbarImage = styled.img`

const LineItem = styled.div<{ $secondary?: boolean }>`
display: inline-block;
width: 95%;
width: fit-content;
max-width: 20vw;
overflow: hidden;
line-height: 1.3;
Expand Down Expand Up @@ -107,8 +107,6 @@ export const LeftControls = () => {

const isSongDefined = Boolean(currentSong?.id);

const stopPropagation = (e?: MouseEvent) => e?.stopPropagation();

const handleGeneralContextMenu = useHandleGeneralContextMenu(
LibraryItem.SONG,
SONG_CONTEXT_MENU_ITEMS,
Expand All @@ -124,6 +122,8 @@ export const LeftControls = () => {
setSideBar({ image: true });
};

const stopPropagation = (e?: MouseEvent) => e?.stopPropagation();

useHotkeys([
[
bindings.toggleFullscreenPlayer.allowGlobal
Expand Down Expand Up @@ -262,7 +262,10 @@ export const LeftControls = () => {
</React.Fragment>
))}
</LineItem>
<LineItem $secondary>
<LineItem
$secondary
onClick={stopPropagation}
>
<Text
$link
component={Link}
Expand Down

0 comments on commit fda295c

Please sign in to comment.