Skip to content

Commit

Permalink
feat: ajust UI after upgrade Mantine
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane committed Oct 19, 2023
1 parent f8f690c commit 79b8a6e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/ButtonDownload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const ButtonDownload: React.FC<ButtonDownloadProps> = memo(
return (
<Menu>
<Menu.Target>
<ActionIcon title={t("download.sound")}>
<ActionIcon color="transparent" title={t("download.sound")}>
<IconDownload size={iconSize} />
</ActionIcon>
</Menu.Target>
Expand Down
18 changes: 9 additions & 9 deletions src/components/ButtonPlayerModeVideo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ActionIcon, Menu, Tooltip } from "@mantine/core";
import { ActionIcon, Menu } from "@mantine/core";
import { IconVideo } from "@tabler/icons-react";
import { memo } from "react";
import { useTranslation } from "react-i18next";
Expand Down Expand Up @@ -35,14 +35,14 @@ export const ButtonPlayerModeVideo: React.FC<ButtonPlayerModeVideoProps> = memo(
}

return (
<Tooltip label={t("video.mode")}>
<ActionIcon
onClick={handleClick}
variant={playerMode === "video" ? "filled" : undefined}
>
<IconVideo size={iconSize} />
</ActionIcon>
</Tooltip>
<ActionIcon
onClick={handleClick}
color="transparent"
title={t("video.mode")}
variant={playerMode === "video" ? "filled" : undefined}
>
<IconVideo size={iconSize} />
</ActionIcon>
);
},
);
2 changes: 1 addition & 1 deletion src/components/ButtonRepeat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const ButtonRepeat: React.FC<ButtonRepeatProps> = memo(
};

return (
<ActionIcon onClick={handleClick}>
<ActionIcon color="transparent" onClick={handleClick} title="Repeat">
{playerState.repeat ? (
<IconRepeatOnce size={iconSize ?? undefined} />
) : (
Expand Down
2 changes: 1 addition & 1 deletion src/components/ButtonShare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const ButtonShare: React.FC<ButtonDownloadProps> = memo(
return (
<Menu shadow="md" width={220}>
<Menu.Target>
<ActionIcon title={t("button.share.video")}>
<ActionIcon color="transparent" title={t("button.share.video")}>
<IconShare size={iconSize} />
</ActionIcon>
</Menu.Target>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const ButtonVolume = memo(() => {
return (
<Popover shadow="md">
<Popover.Target>
<ActionIcon>
<ActionIcon color="transparent">
<IconVolume size={20} />
</ActionIcon>
</Popover.Target>
Expand Down Expand Up @@ -170,7 +170,7 @@ const PlayerPlaylist = memo(() => {
<VideoList videos={videosPlaylist} />
</ScrollArea>
</Drawer>
<ActionIcon onClick={() => setOpened(true)}>
<ActionIcon color="transparent" onClick={() => setOpened(true)}>
<IconPlaylist size={20} />
</ActionIcon>
</>
Expand Down

0 comments on commit 79b8a6e

Please sign in to comment.