Merge remote-tracking branch 'origin/master' into fix/ui-editor-enexpected-select
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { listen } from '@tauri-apps/api/event';
|
import { listen } from '@tauri-apps/api/event';
|
||||||
import { Download, LoaderCircle } from 'lucide-react';
|
import { Download, LoaderCircle, X } from 'lucide-react';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
|
||||||
import { APP_VERSION } from '../app/appMetadata';
|
import { APP_VERSION } from '../app/appMetadata';
|
||||||
@@ -117,6 +117,16 @@ export function AppUpdateNotice() {
|
|||||||
>
|
>
|
||||||
{isDownloading ? '正在下载…' : '下载更新'}
|
{isDownloading ? '正在下载…' : '下载更新'}
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="app-update-close"
|
||||||
|
onClick={dismiss}
|
||||||
|
disabled={isDownloading}
|
||||||
|
aria-label="关闭更新提示"
|
||||||
|
title="关闭"
|
||||||
|
>
|
||||||
|
<X size={18} aria-hidden="true" />
|
||||||
|
</button>
|
||||||
</aside>
|
</aside>
|
||||||
{downloadState !== 'idle' ? (
|
{downloadState !== 'idle' ? (
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -75,6 +75,27 @@ body {
|
|||||||
cursor: wait;
|
cursor: wait;
|
||||||
opacity: 0.65;
|
opacity: 0.65;
|
||||||
}
|
}
|
||||||
|
.app-update-notice .app-update-close {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
border-radius: 6px;
|
||||||
|
background: transparent;
|
||||||
|
color: #8d6a58;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.app-update-notice .app-update-close:hover {
|
||||||
|
background: rgb(199 101 61 / 12%);
|
||||||
|
color: #4a220f;
|
||||||
|
}
|
||||||
|
.app-update-notice .app-update-close:disabled {
|
||||||
|
cursor: wait;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
.app-update-overlay {
|
.app-update-overlay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|||||||
Reference in New Issue
Block a user