mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Format code
This commit is contained in:
@@ -102,7 +102,9 @@ export default class Settings extends Component<SettingsProps> {
|
|||||||
<SettingsCheckbox
|
<SettingsCheckbox
|
||||||
name="download_original_img"
|
name="download_original_img"
|
||||||
checked={settings.download_original_img}
|
checked={settings.download_original_img}
|
||||||
description={t("settings.download_original_img")}
|
description={t(
|
||||||
|
"settings.download_original_img",
|
||||||
|
)}
|
||||||
/>
|
/>
|
||||||
<SettingsCheckbox
|
<SettingsCheckbox
|
||||||
name="ex"
|
name="ex"
|
||||||
@@ -161,16 +163,16 @@ export default class Settings extends Component<SettingsProps> {
|
|||||||
>
|
>
|
||||||
</SettingsText>
|
</SettingsText>
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (ref.current) {
|
if (ref.current) {
|
||||||
const ua = navigator.userAgent;
|
const ua = navigator.userAgent;
|
||||||
const t = ref.current;
|
const t = ref.current;
|
||||||
t.update(ua);
|
t.update(ua);
|
||||||
t.set_value(ua);
|
t.set_value(ua);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{t("settings.ua_now")}
|
{t("settings.ua_now")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<SettingsText
|
<SettingsText
|
||||||
@@ -192,7 +194,9 @@ export default class Settings extends Component<SettingsProps> {
|
|||||||
<SettingsText
|
<SettingsText
|
||||||
name="max_download_img_count"
|
name="max_download_img_count"
|
||||||
value={settings.max_download_img_count}
|
value={settings.max_download_img_count}
|
||||||
description={t("settings.max_download_img_count")}
|
description={t(
|
||||||
|
"settings.max_download_img_count",
|
||||||
|
)}
|
||||||
type="number"
|
type="number"
|
||||||
min={1}
|
min={1}
|
||||||
outlined={true}
|
outlined={true}
|
||||||
|
|||||||
@@ -73,38 +73,34 @@
|
|||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.settings .text-box .text {
|
.settings .text-box .text {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.settings .text-box .text .mdc-text-field::after {
|
||||||
.settings .text-box .text .mdc-text-field::after{
|
|
||||||
width: 0;
|
width: 0;
|
||||||
}
|
}
|
||||||
.settings .text-box .text .mdc-text-field::before{
|
|
||||||
|
.settings .text-box .text .mdc-text-field::before {
|
||||||
width: 0;
|
width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings .ua {
|
.settings .ua {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.settings .ua > button {
|
|
||||||
|
.settings .ua>button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 30px;
|
top: 30px;
|
||||||
left: -10px;
|
left: -10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width:767px) {}
|
||||||
|
|
||||||
@media (max-width:767px) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width:1280px) {
|
@media (max-width:1280px) {
|
||||||
.settings {
|
.settings {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user