From eca8ef39c93f53587fde64c429fdaec239bc8044 Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Wed, 5 Jul 2023 10:20:47 +0800 Subject: [PATCH] Revert "chore: more app drag" This reverts commit cb52460d5c87086230359b9f335118920ccb3e10. --- src/assets/index.css | 1 - src/components/Profile/index.tsx | 1 - src/routes/chat/ChannelChat/index.tsx | 2 +- src/routes/favs/index.tsx | 7 +++---- src/routes/resources/Search.tsx | 3 +-- src/routes/resources/index.tsx | 7 +++---- src/routes/users/index.tsx | 1 - 7 files changed, 8 insertions(+), 14 deletions(-) diff --git a/src/assets/index.css b/src/assets/index.css index 0dee46ec..f1f578df 100644 --- a/src/assets/index.css +++ b/src/assets/index.css @@ -140,7 +140,6 @@ } /* context menu */ .context-menu { - -webkit-app-region: no-drag; display: flex; flex-direction: column; gap: 2px; diff --git a/src/components/Profile/index.tsx b/src/components/Profile/index.tsx index 4ba45a6d..3e407511 100644 --- a/src/components/Profile/index.tsx +++ b/src/components/Profile/index.tsx @@ -54,7 +54,6 @@ const Profile: FC = ({ uid, type = "embed", cid }) => { const hasMore = email || canRemoveFromChannel || canRemoveFromServer; const iconClass = `cursor-pointer flex flex-col items-center gap-1 rounded-lg w-32 text-primary-400 bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 text-sm pt-3.5 pb-3`; const containerClass = clsx( - "app-no-drag", `flex-center flex-col gap-1 z-[99] mt-20 select-none`, isCard ? "p-4 w-[280px] bg-white dark:bg-gray-800 drop-shadow rounded-md" : "md:w-[432px]" ); diff --git a/src/routes/chat/ChannelChat/index.tsx b/src/routes/chat/ChannelChat/index.tsx index b6b60c86..5745314c 100644 --- a/src/routes/chat/ChannelChat/index.tsx +++ b/src/routes/chat/ChannelChat/index.tsx @@ -119,7 +119,7 @@ function ChannelChat({ cid = 0, dropFiles = [] }: Props) {
- {name} + {name} {description}
diff --git a/src/routes/favs/index.tsx b/src/routes/favs/index.tsx index b0bb1c87..cebc1ab4 100644 --- a/src/routes/favs/index.tsx +++ b/src/routes/favs/index.tsx @@ -120,15 +120,14 @@ function FavsPage() { removeFavorite(id); }; return ( -
-
+
+
    {Filters.map(({ icon, title, filter: f }) => { return (
  • ); return ( -
    +

    {tip} {dayjs(created_at).format("YYYY-MM-DD")} diff --git a/src/routes/resources/Search.tsx b/src/routes/resources/Search.tsx index 1484b2f0..361e7156 100644 --- a/src/routes/resources/Search.tsx +++ b/src/routes/resources/Search.tsx @@ -21,7 +21,6 @@ const Search: FC = ({ value = "", updateSearchValue = null, embed = false return (
    = ({ value = "", updateSearchValue = null, embed = false
    diff --git a/src/routes/resources/index.tsx b/src/routes/resources/index.tsx index 1c043a2e..45053924 100644 --- a/src/routes/resources/index.tsx +++ b/src/routes/resources/index.tsx @@ -90,15 +90,14 @@ function ResourceManagement() { // }); return ( -
    +
    -
    +
    +