feat(web): fit the console and status pages to phones and tablets
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 6m4s
ci / test (pull_request) Successful in 11m52s
ci / build (pull_request) Successful in 17m48s
ci / image (pull_request) Successful in 5m28s
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 6m4s
ci / test (pull_request) Successful in 11m52s
ci / build (pull_request) Successful in 17m48s
ci / image (pull_request) Successful in 5m28s
- The console header folds its navigation into a menu below 1024px. - Pages use narrower gutters on phones. - Monitor rows keep name and uptime in place on narrow screens. - Toolbars and the range switch wrap. - Tables scroll sideways instead of squeezing their columns. - Form fields keep 16px text on touch screens so iOS does not zoom in. - The status page footer wraps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
442b45b974
commit
670dde40b6
22 files changed
+1353
-1276
No files matched your search
+36
-34
@@ -51,41 +51,43 @@ templ SSOSettingsPage(p Page, me Me, s SSOSettings) {
|
||||
<dd class="break-all font-mono text-xs leading-5">{ s.LoginURL }</dd>
|
||||
</dl>
|
||||
if len(s.Providers) > 0 {
|
||||
<table class="mb-12 w-full max-w-4xl text-left text-sm">
|
||||
<thead class="border-b border-rule text-xs uppercase tracking-wider text-muted">
|
||||
<tr>
|
||||
<th class="py-2 pr-4 font-medium">{ i18n.T(ctx, "sso.field.name") }</th>
|
||||
<th class="py-2 pr-4 font-medium">{ i18n.T(ctx, "sso.field.issuer") }</th>
|
||||
<th class="py-2 pr-4 font-medium">{ i18n.T(ctx, "sso.field.auto_provision") }</th>
|
||||
<th class="py-2 pr-4 font-medium">{ i18n.T(ctx, "sso.field.enabled") }</th>
|
||||
<th class="py-2"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-rule">
|
||||
for _, pr := range s.Providers {
|
||||
<tr class="align-top">
|
||||
<td class="py-2.5 pr-4">{ pr.Name }</td>
|
||||
<td class="py-2.5 pr-4 break-all font-mono text-xs">{ pr.Issuer }</td>
|
||||
<td class="py-2.5 pr-4">@yesNo(pr.AutoProvision)</td>
|
||||
<td class="py-2.5 pr-4">@yesNo(pr.Enabled)</td>
|
||||
<td class="py-2.5 text-right">
|
||||
<details class="inline-block text-left">
|
||||
<summary class="cursor-pointer text-muted hover:text-ink">{ i18n.T(ctx, "sso.action.edit") }</summary>
|
||||
<div class="mt-4 w-80">
|
||||
@ssoForm(pr, s.Roles, "put", "/org/sso/"+pr.ID)
|
||||
<button
|
||||
type="button"
|
||||
data-delete={ "/org/sso/" + pr.ID }
|
||||
data-confirm={ i18n.T(ctx, "sso.action.delete_confirm") }
|
||||
class="mt-4 text-sm text-down hover:underline"
|
||||
>{ i18n.T(ctx, "sso.action.delete") }</button>
|
||||
</div>
|
||||
</details>
|
||||
</td>
|
||||
<div class="overflow-x-auto">
|
||||
<table class="mb-12 w-full max-w-4xl text-left text-sm">
|
||||
<thead class="border-b border-rule text-xs uppercase tracking-wider text-muted">
|
||||
<tr>
|
||||
<th class="py-2 pr-4 font-medium">{ i18n.T(ctx, "sso.field.name") }</th>
|
||||
<th class="py-2 pr-4 font-medium">{ i18n.T(ctx, "sso.field.issuer") }</th>
|
||||
<th class="py-2 pr-4 font-medium">{ i18n.T(ctx, "sso.field.auto_provision") }</th>
|
||||
<th class="py-2 pr-4 font-medium">{ i18n.T(ctx, "sso.field.enabled") }</th>
|
||||
<th class="py-2"></th>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-rule">
|
||||
for _, pr := range s.Providers {
|
||||
<tr class="align-top">
|
||||
<td class="py-2.5 pr-4">{ pr.Name }</td>
|
||||
<td class="py-2.5 pr-4 break-all font-mono text-xs">{ pr.Issuer }</td>
|
||||
<td class="py-2.5 pr-4">@yesNo(pr.AutoProvision)</td>
|
||||
<td class="py-2.5 pr-4">@yesNo(pr.Enabled)</td>
|
||||
<td class="py-2.5 text-right">
|
||||
<details class="inline-block text-left">
|
||||
<summary class="cursor-pointer text-muted hover:text-ink">{ i18n.T(ctx, "sso.action.edit") }</summary>
|
||||
<div class="mt-4 w-80">
|
||||
@ssoForm(pr, s.Roles, "put", "/org/sso/"+pr.ID)
|
||||
<button
|
||||
type="button"
|
||||
data-delete={ "/org/sso/" + pr.ID }
|
||||
data-confirm={ i18n.T(ctx, "sso.action.delete_confirm") }
|
||||
class="mt-4 text-sm text-down hover:underline"
|
||||
>{ i18n.T(ctx, "sso.action.delete") }</button>
|
||||
</div>
|
||||
</details>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
}
|
||||
<section class="max-w-md">
|
||||
<h2 class="mb-4 text-xs font-medium uppercase tracking-wider text-muted">{ i18n.T(ctx, "sso.settings.add") }</h2>
|
||||
|
||||
Reference in new issue
Block a user