refactor(DownloadAll): 调整按钮位置

This commit is contained in:
awalol
2025-07-15 22:10:45 +08:00
committed by awalol
parent 2da766168c
commit d122eaecf5
4 changed files with 12 additions and 8 deletions

View File

@@ -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>

View File

@@ -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>
);