Compare commits
2 Commits
4e90328b84
...
712068a00e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
712068a00e | ||
|
|
dac824a161 |
@ -85,7 +85,7 @@ class InstanceManager {
|
||||
<div class="lp-instance-row">
|
||||
<label class="lp-instance-field">
|
||||
<span>Domain</span>
|
||||
<select id="lp-instance-domain">${domainOptions}</select>
|
||||
<select id="lp-instance-domain" class="form-control">${domainOptions}</select>
|
||||
</label>
|
||||
<label class="lp-instance-field">
|
||||
<span>Subdomain</span>
|
||||
|
||||
@ -405,6 +405,14 @@ div.panel-fields > div.form-field[id^="PORT_"] {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
|
||||
/* Themed dropdowns (custom-select.js) inside the dense port grid: match the
|
||||
compact metrics of the sibling text inputs above so rows line up. */
|
||||
.port-field .custom-select-button {
|
||||
padding: 8px 12px;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.port-manager-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -282,8 +282,19 @@
|
||||
|
||||
// Classes that participate in the themed dropdown. Add more here
|
||||
// (or use data-no-enhance to opt a specific <select> out) as new
|
||||
// dropdown surfaces appear in the app.
|
||||
const ENHANCE_CLASSES = ['form-control', 'theme-selector'];
|
||||
// dropdown surfaces appear in the app. Only <select>s with one of
|
||||
// these classes are enhanced — same-class <input>/<textarea> are
|
||||
// skipped (shouldEnhance requires an HTMLSelectElement).
|
||||
const ENHANCE_CLASSES = [
|
||||
'form-control', 'theme-selector',
|
||||
// Per-app config forms (components/apps/core/config-form.js) and the
|
||||
// app tools forms — these render selects (theme, domain, backup
|
||||
// strategy, gluetun, …) with these classes instead of form-control.
|
||||
'form-select', 'form-input', 'config-input',
|
||||
// Port manager grid (components/apps/port-manager) — one select per column.
|
||||
'port-service', 'port-protocol', 'port-access', 'port-traefik',
|
||||
'port-button-enabled', 'port-login-required', 'port-recommended',
|
||||
];
|
||||
const ENHANCE_SELECTOR = ENHANCE_CLASSES.map(c => `select.${c}`).join(',');
|
||||
|
||||
function shouldEnhance(el) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user