Revert "chore: more app drag"

This reverts commit cb52460d5c.
This commit is contained in:
Tristan Yang
2023-07-05 10:20:47 +08:00
parent cb52460d5c
commit eca8ef39c9
7 changed files with 8 additions and 14 deletions
-1
View File
@@ -140,7 +140,6 @@
}
/* context menu */
.context-menu {
-webkit-app-region: no-drag;
display: flex;
flex-direction: column;
gap: 2px;
-1
View File
@@ -54,7 +54,6 @@ const Profile: FC<Props> = ({ 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]"
);
+1 -1
View File
@@ -119,7 +119,7 @@ function ChannelChat({ cid = 0, dropFiles = [] }: Props) {
<GoBackNav />
<div className="flex items-center gap-1">
<ChannelIcon personal={!is_public} />
<span className="text-gray-800 dark:text-white whitespace-nowrap">{name}</span>
<span className="text-gray-800 dark:text-white">{name}</span>
<span className="ml-2 text-gray-500 hidden md:block">{description}</span>
</div>
</header>
+2 -3
View File
@@ -120,7 +120,7 @@ function FavsPage() {
removeFavorite(id);
};
return (
<div className="app-drag h-screen flex bg-white mt-2 mr-6 mb-2.5 overflow-auto dark:bg-gray-700 rounded-2xl">
<div className="h-screen flex bg-white mt-2 mr-6 mb-2.5 overflow-auto dark:bg-gray-700 rounded-2xl">
<div className=" md:min-w-[268px] p-2 shadow-inner-[-1px_0px_0px_rgba(0,_0,_0,_0.1)]">
<ul className="flex flex-col gap-0.5">
{Filters.map(({ icon, title, filter: f }) => {
@@ -128,7 +128,6 @@ function FavsPage() {
<li
key={f}
className={clsx(
"app-no-drag",
f == filter && "bg-[rgba(116,_127,_141,_0.2)]",
`cursor-pointer flex items-center gap-2 p-2 rounded-lg md:hover:bg-[rgba(116,_127,_141,_0.2)]`
)}
@@ -168,7 +167,7 @@ function FavsPage() {
</span>
);
return (
<div className="max-w-[600px] flex flex-col gap-1 app-no-drag" key={id}>
<div className="max-w-[600px] flex flex-col gap-1" key={id}>
<h4 className="inline-flex items-center text-xs text-gray-400">
{tip}
{dayjs(created_at).format("YYYY-MM-DD")}
+1 -2
View File
@@ -21,7 +21,6 @@ const Search: FC<Props> = ({ value = "", updateSearchValue = null, embed = false
return (
<div
className={clsx(
"app-no-drag",
`hidden md:block relative w-full py-1.5 px-4 shadow`,
embed && "py-2 shadow-none"
)}
@@ -30,7 +29,7 @@ const Search: FC<Props> = ({ value = "", updateSearchValue = null, embed = false
<input
value={value}
onChange={handleChange}
className="bg-black/5 dark:bg-black/20 rounded-full text-sm text-gray-500 py-2.5 pl-9 app-no-drag"
className="bg-black/5 dark:bg-black/20 rounded-full text-sm text-gray-500 py-2.5 pl-9"
placeholder={`${t("action.search")}...`}
/>
</div>
+3 -4
View File
@@ -90,15 +90,14 @@ function ResourceManagement() {
// });
return (
<div className="app-drag h-screen md:overflow-y-scroll flex flex-col items-start my-2 mr-6 rounded-2xl bg-white dark:bg-gray-700">
<div className="h-screen md:overflow-y-scroll flex flex-col items-start my-2 mr-6 rounded-2xl bg-white dark:bg-gray-700">
<Search value={filter.name} updateSearchValue={handleUpdateSearch} />
<div className="app-no-drag flex justify-between w-full px-4 py-5">
<div className="flex justify-between w-full px-4 py-5">
<Filter filter={filter} updateFilter={updateFilter} />
<View view={view} />
</div>
<div
className={clsx(
"app-drag",
`w-full h-full px-4 overflow-scroll flex`,
view == "item" && "gap-2 flex-col",
view == "grid" && "flex-wrap"
@@ -117,7 +116,7 @@ function ResourceManagement() {
const url = thumbnail || content;
if (isExpired(url)) return null;
return (
<div key={mid} className="app-no-drag grid-box mb-2">
<div key={mid} className="grid-box mb-2">
<FileBox
preview={view == "grid"}
flex={view == "item"}
-1
View File
@@ -62,7 +62,6 @@ function UsersPage() {
</div>
<div
className={clsx(
"app-drag",
`md:rounded-r-2xl bg-white w-full flex justify-center items-start dark:bg-gray-700`,
!user_id && "h-full items-center",
!isUserDetail && "hidden md:flex"