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