mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-27 19:13:01 +00:00
refactor(DownloadAll): 调整按钮位置
This commit is contained in:
@@ -65,3 +65,12 @@ h6 {
|
||||
opacity: 0.75;
|
||||
}
|
||||
}
|
||||
|
||||
#downloadAll {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 72px;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@ import { Bounce, ToastContainer } from 'react-toastify';
|
||||
import { SettingsHome } from '~/features/settings/SettingsHome';
|
||||
import { FAQ_PAGES } from '~/faq/FAQPages';
|
||||
import { FaqHome } from '~/faq/FaqHome';
|
||||
import { DownloadAll } from '~/components/DownloadAll.tsx';
|
||||
|
||||
// Private to this file only.
|
||||
const store = setupStore();
|
||||
@@ -72,7 +71,6 @@ export function AppRoot() {
|
||||
transition={Bounce}
|
||||
/>
|
||||
|
||||
<DownloadAll />
|
||||
<Footer />
|
||||
</Provider>
|
||||
</BrowserRouter>
|
||||
|
||||
@@ -62,12 +62,7 @@ export function DownloadAll() {
|
||||
};
|
||||
|
||||
return (
|
||||
<button
|
||||
style={{ width: '48px', height: '48px', paddingInline: '0px', margin: '10px', marginLeft: 'auto' }}
|
||||
className="btn btn-primary"
|
||||
onClick={onClickDownloadAll}
|
||||
title="下载全部"
|
||||
>
|
||||
<button className="btn btn-primary" id="downloadAll" onClick={onClickDownloadAll} title="下载全部">
|
||||
<FaDownload />
|
||||
</button>
|
||||
);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { RiErrorWarningLine } from 'react-icons/ri';
|
||||
import { SelectFile } from '../components/SelectFile';
|
||||
import { DownloadAll } from '~/components/DownloadAll.tsx';
|
||||
|
||||
import { FileListing } from '~/features/file-listing/FileListing';
|
||||
import { useAppDispatch, useAppSelector } from '~/hooks.ts';
|
||||
@@ -39,6 +40,7 @@ export function MainTab() {
|
||||
<div className="w-full mt-4">
|
||||
<FileListing />
|
||||
</div>
|
||||
<DownloadAll />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user