support drag window on modal dialog
Some checks are pending
Build / windows (arm64) (push) Waiting to run
Build / windows (ia32) (push) Waiting to run
Build / windows (x64) (push) Waiting to run
Build / windows7 (ia32) (push) Waiting to run
Build / windows7 (x64) (push) Waiting to run
Build / linux (arm64) (push) Waiting to run
Build / linux (x64) (push) Waiting to run
Build / macos (arm64) (push) Waiting to run
Build / macos (x64) (push) Waiting to run
Build / updater (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-bin) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron) (push) Blocked by required conditions
Build / aur-release-updater (mihomo-party-electron-bin) (push) Blocked by required conditions
Build / aur-git-updater (push) Waiting to run
Build / Update WinGet Package (push) Blocked by required conditions
Build / Update Homebrew cask (push) Blocked by required conditions

This commit is contained in:
pompurin404 2024-10-12 11:49:42 +08:00
parent 704109daa4
commit 484f21fac4
No known key found for this signature in database
13 changed files with 15 additions and 14 deletions

View File

@ -21,7 +21,7 @@ const BasePasswordModal: React.FC<Props> = (props) => {
return (
<Modal backdrop="blur" classNames={{ backdrop: 'top-[48px]' }} hideCloseButton isOpen={true}>
<ModalContent>
<ModalHeader className="flex">root密码</ModalHeader>
<ModalHeader className="flex app-drag">root密码</ModalHeader>
<ModalBody>
<Input fullWidth type="password" value={password} onValueChange={setPassword} />
</ModalBody>

View File

@ -21,7 +21,7 @@ const ConnectionDetailModal: React.FC<Props> = (props) => {
scrollBehavior="inside"
>
<ModalContent className="flag-emoji break-all">
<ModalHeader className="flex"></ModalHeader>
<ModalHeader className="flex app-drag"></ModalHeader>
<ModalBody>
<SettingItem title="连接类型">
{connection.metadata.type}({connection.metadata.network})

View File

@ -33,7 +33,7 @@ const InterfaceModal: React.FC<Props> = (props) => {
scrollBehavior="inside"
>
<ModalContent>
<ModalHeader className="flex"></ModalHeader>
<ModalHeader className="flex app-drag"></ModalHeader>
<ModalBody>
{Object.entries(info).map(([key, value]) => {
return (

View File

@ -30,7 +30,7 @@ const EditFileModal: React.FC<Props> = (props) => {
scrollBehavior="inside"
>
<ModalContent className="h-full w-[calc(100%-100px)]">
<ModalHeader className="flex pb-0">
<ModalHeader className="flex pb-0 app-drag">
{language === 'javascript' ? '脚本' : '配置'}
</ModalHeader>
<ModalBody className="h-full">

View File

@ -36,7 +36,7 @@ const EditInfoModal: React.FC<Props> = (props) => {
scrollBehavior="inside"
>
<ModalContent>
<ModalHeader className="flex"></ModalHeader>
<ModalHeader className="flex app-drag"></ModalHeader>
<ModalBody>
<SettingItem title="名称">
<Input

View File

@ -35,7 +35,7 @@ const ExecLogModal: React.FC<Props> = (props) => {
scrollBehavior="inside"
>
<ModalContent>
<ModalHeader className="flex"></ModalHeader>
<ModalHeader className="flex app-drag"></ModalHeader>
<ModalBody>
{logs.map((log) => {
return (

View File

@ -31,7 +31,7 @@ const EditFileModal: React.FC<Props> = (props) => {
scrollBehavior="inside"
>
<ModalContent className="h-full w-[calc(100%-100px)]">
<ModalHeader className="flex pb-0">
<ModalHeader className="flex pb-0 app-drag">
<div className="flex justify-start">
<div className="flex items-center"></div>
<small className="ml-2 text-default-500">
@ -40,6 +40,7 @@ const EditFileModal: React.FC<Props> = (props) => {
size="sm"
color="primary"
variant="light"
className="app-nodrag"
onPress={() => {
navigate('/override')
}}

View File

@ -56,7 +56,7 @@ const EditInfoModal: React.FC<Props> = (props) => {
scrollBehavior="inside"
>
<ModalContent>
<ModalHeader className="flex"></ModalHeader>
<ModalHeader className="flex app-drag"></ModalHeader>
<ModalBody>
<SettingItem title="名称">
<Input

View File

@ -30,7 +30,7 @@ const CSSEditorModal: React.FC<Props> = (props) => {
scrollBehavior="inside"
>
<ModalContent className="h-full w-[calc(100%-100px)]">
<ModalHeader className="flex pb-0"></ModalHeader>
<ModalHeader className="flex pb-0 app-drag"></ModalHeader>
<ModalBody className="h-full">
<BaseEditor
language="css"

View File

@ -21,7 +21,7 @@ const WebdavRestoreModal: React.FC<Props> = (props) => {
scrollBehavior="inside"
>
<ModalContent>
<ModalHeader className="flex"></ModalHeader>
<ModalHeader className="flex app-drag"></ModalHeader>
<ModalBody>
{filenames.length === 0 ? (
<div className="flex justify-center"></div>

View File

@ -28,7 +28,7 @@ const ConfigViewer: React.FC<Props> = (props) => {
scrollBehavior="inside"
>
<ModalContent className="h-full w-[calc(100%-100px)]">
<ModalHeader className="flex pb-0"></ModalHeader>
<ModalHeader className="flex pb-0 app-drag"></ModalHeader>
<ModalBody className="h-full">
<BaseEditor language="yaml" value={currData} readOnly={true} />
</ModalBody>

View File

@ -21,7 +21,7 @@ const PacEditorModal: React.FC<Props> = (props) => {
scrollBehavior="inside"
>
<ModalContent className="h-full w-[calc(100%-100px)]">
<ModalHeader className="flex pb-0">PAC脚本</ModalHeader>
<ModalHeader className="flex pb-0 app-drag">PAC脚本</ModalHeader>
<ModalBody className="h-full">
<BaseEditor
language="javascript"

View File

@ -37,12 +37,12 @@ const UpdaterModal: React.FC<Props> = (props) => {
scrollBehavior="inside"
>
<ModalContent className="h-full w-[calc(100%-100px)]">
<ModalHeader className="flex justify-between">
<ModalHeader className="flex justify-between app-drag">
<div>v{version} </div>
<Button
color="primary"
size="sm"
className="flex"
className="flex app-nodrag"
onPress={() => {
open(`https://github.com/mihomo-party-org/mihomo-party/releases/tag/v${version}`)
}}