Fix redundant CSS class usage and enhance toggle-field layout

Removed the unnecessary "field-full" class from toggle-field divs in TargetsPage.jsx to simplify the layout. Updated styles.css to refine the toggle-field alignment and introduced a max-width for better control of toggle-check elements.
This commit is contained in:
2026-02-12 13:52:12 +01:00
parent a8b7d9f54a
commit 5674f2ea45
2 changed files with 7 additions and 2 deletions

View File

@@ -200,7 +200,7 @@ export function TargetsPage() {
If you see "rejected SSL upgrade", switch to <code>disable</code>.
</small>
</div>
<div className="field field-full toggle-field">
<div className="field toggle-field">
<label>Query Insights Source</label>
<label className="toggle-check">
<input
@@ -266,7 +266,7 @@ export function TargetsPage() {
<option value="require">require</option>
</select>
</div>
<div className="field field-full toggle-field">
<div className="field toggle-field">
<label>Query Insights Source</label>
<label className="toggle-check">
<input

View File

@@ -319,6 +319,11 @@ button {
.toggle-field {
margin-top: 2px;
align-self: end;
}
.toggle-field .toggle-check {
max-width: 520px;
}
.tips p {