From 7496a01edc5c3770a608cb80553dcffcd3ec1c94 Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Tue, 21 Feb 2023 21:59:15 +0800 Subject: [PATCH] refactor: remove hover effects in mobile --- src/common/component/BlankPlaceholder.tsx | 2 +- src/common/component/Channel.tsx | 2 +- src/common/component/ChannelModal/index.tsx | 2 +- src/common/component/FileBox/preview/Audio.tsx | 2 +- src/common/component/LeaveChannel/TransferOwnerModal.tsx | 2 +- src/common/component/Manifest/Prompt.tsx | 4 ++-- src/common/component/Message/URLPreview.tsx | 2 +- src/common/component/User/index.tsx | 2 +- src/common/component/styled/Button.tsx | 2 +- src/routes/chat/ChannelChat/index.tsx | 2 +- src/routes/chat/FavList.tsx | 4 ++-- src/routes/setting/BotConfig/BotAPIKeys.tsx | 8 -------- src/routes/setting/License/index.tsx | 2 +- 13 files changed, 14 insertions(+), 22 deletions(-) diff --git a/src/common/component/BlankPlaceholder.tsx b/src/common/component/BlankPlaceholder.tsx index 4247a9c5..78911e08 100644 --- a/src/common/component/BlankPlaceholder.tsx +++ b/src/common/component/BlankPlaceholder.tsx @@ -14,7 +14,7 @@ interface Props { type?: "chat" | "user"; } const classes = { - box: "w-[220px] md:w-[200px] h-[100px] md:h-[200px] cursor-pointer bg-white dark:bg-gray-800 rounded-3xl flex-center flex-col gap-4", + box: "w-[220px] md:w-[200px] h-[100px] md:h-[200px] cursor-pointer bg-gray-50 dark:bg-gray-800 rounded-3xl flex-center flex-col gap-4", boxIcon: "w-7 h-7 md:w-10 md:h-10", boxTip: "px-5 text-xs md:text-sm text-slate-600 dark:text-gray-100 font-bold text-center" }; diff --git a/src/common/component/Channel.tsx b/src/common/component/Channel.tsx index d45944a9..17fbee49 100644 --- a/src/common/component/Channel.tsx +++ b/src/common/component/Channel.tsx @@ -24,7 +24,7 @@ const Channel: FC = ({ interactive = true, id, compact = false, avatarSiz return (
= ({ personal = false, closeModal }) => {
{t("channel_name")}
- +
diff --git a/src/common/component/FileBox/preview/Audio.tsx b/src/common/component/FileBox/preview/Audio.tsx index 5a0bf552..fea7f53a 100644 --- a/src/common/component/FileBox/preview/Audio.tsx +++ b/src/common/component/FileBox/preview/Audio.tsx @@ -16,7 +16,7 @@ const Audio: FC = ({ url }) => { return (
{err ? ( -
Unable to play this audio
+
Unable to play this audio
) : (