mirror of
https://github.com/go-gitea/gitea
synced 2024-11-16 07:04:25 +00:00
fa0b5b14c2
Replace #25580 Fix #19453 The problem was: when users set "GITEA__XXX__YYY" , the "install page" doesn't respect it. So, to make the result consistent and avoid surprising end users, now the "install page" also writes the environment variables to the config file. And, to make things clear, there are enough messages on the UI to tell users what will happen. There are some necessary/related changes to `environment-to-ini.go`: * The "--clear" flag is removed and it was incorrectly written there. The "clear" operation should be done if INSTALL_LOCK=true * The "--prefix" flag is removed because it's never used, never documented and it only causes inconsistent behavior. ![image](https://github.com/go-gitea/gitea/assets/2114189/12778ee4-3fb5-4664-a73a-41ebbd77cd5b)
55 lines
1.2 KiB
CSS
55 lines
1.2 KiB
CSS
.page-content.install .install-config-container {
|
|
max-width: 900px;
|
|
margin: auto;
|
|
}
|
|
|
|
.page-content.install form.ui.form .inline.field > label {
|
|
text-align: right;
|
|
width: 30%;
|
|
padding-right: 10px;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.page-content.install .ui.form .field > .help,
|
|
.page-content.install .ui.form .field > .ui.checkbox:first-child,
|
|
.page-content.install .ui.form .field > .right-content {
|
|
margin-left: 30%;
|
|
padding-left: 5px;
|
|
width: auto;
|
|
}
|
|
|
|
.page-content.install form.ui.form input {
|
|
width: 60%;
|
|
}
|
|
|
|
.page-content.install form.ui.form details.optional.field[open] {
|
|
border-bottom: 1px dashed var(--color-secondary);
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.page-content.install form.ui.form details.optional.field[open] summary {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.page-content.install form.ui.form details.optional.field * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.page-content.install form.ui.form .field {
|
|
text-align: left;
|
|
}
|
|
|
|
.page-content.install .ui .reinstall-message {
|
|
width: 70%;
|
|
margin: 20px auto;
|
|
color: var(--color-red);
|
|
text-align: left;
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
|
|
.page-content.install .ui .reinstall-confirm {
|
|
width: 70%;
|
|
text-align: left;
|
|
margin: 10px auto;
|
|
}
|