Skip to content

Commit 1969d51

Browse files
committed
fix: nodeAuth card full width layout
1 parent 79169ef commit 1969d51

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

views/settings.ejs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,21 +311,23 @@
311311
312312
<!-- Row 2: Node Auth API -->
313313
<div class="row" style="margin-top: 1rem;">
314-
<div class="col-6">
314+
<div class="col-12">
315315
<div class="card">
316316
<div class="card-header">
317317
<h2><%= t('settings.nodeAuth') || 'Node Auth API' %></h2>
318318
</div>
319-
<div class="card-body">
320-
<form method="POST" action="/panel/settings">
321-
<label class="checkbox-label" style="margin-bottom: 0.75rem;">
322-
<input type="checkbox" name="nodeAuth.insecure"
319+
<div class="card-body" style="display: flex; align-items: center; justify-content: space-between; gap: 1rem;">
320+
<div>
321+
<label class="checkbox-label" style="margin-bottom: 0.5rem;">
322+
<input type="checkbox" name="nodeAuth.insecure" form="nodeAuthForm"
323323
<%= settings?.nodeAuth?.insecure !== false ? 'checked' : '' %>>
324324
<span><%= t('settings.nodeAuthInsecure') || 'Allow self-signed certificates' %></span>
325325
</label>
326-
<p class="hint" style="margin-top: 0.5rem; margin-bottom: 1rem;">
326+
<p class="hint" style="margin: 0;">
327327
<%= t('settings.nodeAuthInsecureHint') || 'Enable if panel uses HTTP or self-signed SSL. Nodes will accept any certificate when connecting to auth API. Disable for production with valid SSL.' %>
328328
</p>
329+
</div>
330+
<form method="POST" action="/panel/settings" id="nodeAuthForm">
329331
<button type="submit" class="btn btn-primary"><%= t('common.save') || 'Save' %></button>
330332
</form>
331333
</div>

0 commit comments

Comments
 (0)