mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-30 03:00:40 +00:00
fix(setup): increase left padding input fields + avoid clipping
This commit is contained in:
parent
2aaed66b38
commit
c2a560e2ed
1 changed files with 32 additions and 13 deletions
|
@ -46,8 +46,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { useToast } from "vue-toastification"
|
import { useToast } from "vue-toastification";
|
||||||
const toast = useToast()
|
const toast = useToast();
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
@ -56,7 +56,7 @@ export default {
|
||||||
username: "",
|
username: "",
|
||||||
password: "",
|
password: "",
|
||||||
repeatPassword: "",
|
repeatPassword: "",
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
"$i18n.locale"() {
|
"$i18n.locale"() {
|
||||||
|
@ -66,7 +66,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$root.getSocket().emit("needSetup", (needSetup) => {
|
this.$root.getSocket().emit("needSetup", (needSetup) => {
|
||||||
if (! needSetup) {
|
if (! needSetup) {
|
||||||
this.$router.push("/")
|
this.$router.push("/");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -75,31 +75,30 @@ export default {
|
||||||
this.processing = true;
|
this.processing = true;
|
||||||
|
|
||||||
if (this.password !== this.repeatPassword) {
|
if (this.password !== this.repeatPassword) {
|
||||||
toast.error("Repeat password do not match.")
|
toast.error("Repeat password do not match.");
|
||||||
this.processing = false;
|
this.processing = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$root.getSocket().emit("setup", this.username, this.password, (res) => {
|
this.$root.getSocket().emit("setup", this.username, this.password, (res) => {
|
||||||
this.processing = false;
|
this.processing = false;
|
||||||
this.$root.toastRes(res)
|
this.$root.toastRes(res);
|
||||||
|
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.processing = true;
|
this.processing = true;
|
||||||
|
|
||||||
this.$root.login(this.username, this.password, "", (res) => {
|
this.$root.login(this.username, this.password, "", () => {
|
||||||
this.processing = false;
|
this.processing = false;
|
||||||
this.$router.push("/")
|
this.$router.push("/");
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
.form-container {
|
.form-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -107,6 +106,26 @@ export default {
|
||||||
padding-bottom: 40px;
|
padding-bottom: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-floating {
|
||||||
|
> .form-select {
|
||||||
|
padding-left: 1.3rem;
|
||||||
|
padding-top: 1.525rem;
|
||||||
|
line-height: 1.35;
|
||||||
|
|
||||||
|
~ label {
|
||||||
|
padding-left: 1.3rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> label {
|
||||||
|
padding-left: 1.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .form-control {
|
||||||
|
padding-left: 1.3rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.form {
|
.form {
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
Loading…
Reference in a new issue