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