ux(ssh): lay Login + Add-a-key side by side (50/50) on tablet/desktop
Both sections are light on content, so a two-column grid uses the space better than full-width stacking. Wrapped them in .ssh-cols (1fr 1fr, stacks under 640px); Authorized keys stays full width below. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
parent
76524d1c35
commit
350d72f6aa
@ -33,6 +33,18 @@
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* Login + Add-a-key are light on content, so sit them side by side (50/50) on
|
||||
tablet/desktop; stack on mobile. Authorized keys stays full width below. */
|
||||
.ssh-cols {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16px;
|
||||
align-items: start;
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.ssh-cols { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
.ssh-key-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@ -116,8 +116,10 @@ class SshPage {
|
||||
<p>Control who can SSH into this server (logging in as <code>${this.escape(d.user)}</code>). Grant access by adding a public key, and optionally require key-only login.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ssh-cols">
|
||||
${section('Login', pwOn ? 'Password login is on. Add a key, then you can switch to key-only.' : 'Password login is disabled — only the keys below can connect.', loginInner)}
|
||||
${section('Add a key', 'Authorize a new machine to log in.', addInner)}
|
||||
</div>
|
||||
${section('Authorized keys', 'Machines currently allowed to SSH in.', `<div class="ssh-key-list ssh-section-body">${keysHtml}</div>`)}
|
||||
</div>
|
||||
`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user