carlos / platform Public

console: keep the star and app name on one line

In the apps list the star button and the app link were separate inline
items in the App cell, so a narrow column pushed the link below the
star. Wrap both in one flex row; a long name now wraps inside its
label. The phone layout is unchanged (star stays pinned top-right).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from console-app-name-nowrap into main.
claude agent, operated by paul@keymail.dev bdf8b088d4caa4ef9580cc43f73a85739cb9b859 parent 35b7c25
1 file changed, +9 −6
  • internal/console/templates/apps.html +9 −6

CI passed — run details

diff --git a/internal/console/templates/apps.html b/internal/console/templates/apps.html
index 732363671..d6cdf95aa 100644
--- a/internal/console/templates/apps.html
+++ b/internal/console/templates/apps.html
@@ -17,11 +17,11 @@
<tr class="app-head" role="row"><th role="columnheader" scope="col">App</th><th role="columnheader" scope="col">Running at</th><th role="columnheader" scope="col">{{$.RegionCopy.PickerLabel}}</th><th role="columnheader" scope="col">Health</th><th role="columnheader" scope="col">{{$.StatusCopy.ObservedLabel}}</th><th role="columnheader" scope="col">{{$.AppListCopy.Expires}}</th></tr>
{{range .StarredApps}}
<tr role="row" data-app-row data-app-name="{{.App}}" data-app-host="{{.URL}}">
- <td role="cell" class="app-name"><form class="app-star" method="post" action="{{$.Base}}/apps/{{.App}}/star">
+ <td role="cell" class="app-name"><div class="app-name-line"><form class="app-star" method="post" action="{{$.Base}}/apps/{{.App}}/star">
<input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="q" value="{{$.AppFilter}}">
<input type="hidden" name="starred" value="{{if .Starred}}false{{else}}true{{end}}">
<button class="linkish" type="submit" aria-label="{{if .Starred}}{{$.AppListCopy.Unstar}}{{else}}{{$.AppListCopy.Star}}{{end}}" aria-pressed="{{.Starred}}"> {{icon "star"}}</button>
- </form><a href="{{$.Nav}}/apps/{{.App}}">{{template "app_mark" .App}}<span class="app-label">{{.App}}</span></a></td>
+ </form><a href="{{$.Nav}}/apps/{{.App}}">{{template "app_mark" .App}}<span class="app-label">{{.App}}</span></a></div></td>
<td role="cell" class="app-host">{{if .URL}}<a href="https://{{.URL}}">{{.URL}}</a>{{else}}—{{end}}</td>
<td role="cell" class="app-region">{{if .ServedFrom}}{{.ServedFrom}}{{else if .Region.Known}}{{.Region.Text}}{{range .Elsewhere}}<br><span class="small">{{.Line}}</span>{{end}}{{else}}—{{end}}</td>
<td role="cell" class="app-health"><span class="chip chip-health-{{.Verdict}}">{{.VerdictLabel}}</span></td>
@@ -34,11 +34,11 @@
<tr class="app-head" role="row"><th role="columnheader" scope="col">App</th><th role="columnheader" scope="col">Running at</th><th role="columnheader" scope="col">{{$.RegionCopy.PickerLabel}}</th><th role="columnheader" scope="col">Health</th><th role="columnheader" scope="col">{{$.StatusCopy.ObservedLabel}}</th><th role="columnheader" scope="col">{{$.AppListCopy.Expires}}</th></tr>
{{range .RegularApps}}
<tr role="row" data-app-row data-app-name="{{.App}}" data-app-host="{{.URL}}">
- <td role="cell" class="app-name"><form class="app-star" method="post" action="{{$.Base}}/apps/{{.App}}/star">
+ <td role="cell" class="app-name"><div class="app-name-line"><form class="app-star" method="post" action="{{$.Base}}/apps/{{.App}}/star">
<input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="q" value="{{$.AppFilter}}">
<input type="hidden" name="starred" value="{{if .Starred}}false{{else}}true{{end}}">
<button class="linkish" type="submit" aria-label="{{if .Starred}}{{$.AppListCopy.Unstar}}{{else}}{{$.AppListCopy.Star}}{{end}}" aria-pressed="{{.Starred}}"> {{icon "star"}}</button>
- </form><a href="{{$.Nav}}/apps/{{.App}}">{{template "app_mark" .App}}<span class="app-label">{{.App}}</span></a></td>
+ </form><a href="{{$.Nav}}/apps/{{.App}}">{{template "app_mark" .App}}<span class="app-label">{{.App}}</span></a></div></td>
<td role="cell" class="app-host">{{if .URL}}<a href="https://{{.URL}}">{{.URL}}</a>{{else}}—{{end}}</td>
<td role="cell" class="app-region">{{if .ServedFrom}}{{.ServedFrom}}{{else if .Region.Known}}{{.Region.Text}}{{range .Elsewhere}}<br><span class="small">{{.Line}}</span>{{end}}{{else}}—{{end}}</td>
<td role="cell" class="app-health"><span class="chip chip-health-{{.Verdict}}">{{.VerdictLabel}}</span></td>
@@ -51,11 +51,11 @@
<tr class="app-head" role="row"><th role="columnheader" scope="col">App</th><th role="columnheader" scope="col">Running at</th><th role="columnheader" scope="col">{{$.RegionCopy.PickerLabel}}</th><th role="columnheader" scope="col">Health</th><th role="columnheader" scope="col">{{$.StatusCopy.ObservedLabel}}</th><th role="columnheader" scope="col">{{$.AppListCopy.Expires}}</th></tr>
{{range .TemporaryApps}}
<tr role="row" data-app-row data-app-name="{{.App}}" data-app-host="{{.URL}}">
- <td role="cell" class="app-name"><form class="app-star" method="post" action="{{$.Base}}/apps/{{.App}}/star">
+ <td role="cell" class="app-name"><div class="app-name-line"><form class="app-star" method="post" action="{{$.Base}}/apps/{{.App}}/star">
<input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="q" value="{{$.AppFilter}}">
<input type="hidden" name="starred" value="{{if .Starred}}false{{else}}true{{end}}">
<button class="linkish" type="submit" aria-label="{{if .Starred}}{{$.AppListCopy.Unstar}}{{else}}{{$.AppListCopy.Star}}{{end}}" aria-pressed="{{.Starred}}"> {{icon "star"}}</button>
- </form><a href="{{$.Nav}}/apps/{{.App}}">{{template "app_mark" .App}}<span class="app-label">{{.App}}</span></a></td>
+ </form><a href="{{$.Nav}}/apps/{{.App}}">{{template "app_mark" .App}}<span class="app-label">{{.App}}</span></a></div></td>
<td role="cell" class="app-host">{{if .URL}}<a href="https://{{.URL}}">{{.URL}}</a>{{else}}—{{end}}</td>
<td role="cell" class="app-region">{{if .ServedFrom}}{{.ServedFrom}}{{else if .Region.Known}}{{.Region.Text}}{{range .Elsewhere}}<br><span class="small">{{.Line}}</span>{{end}}{{else}}—{{end}}</td>
<td role="cell" class="app-health"><span class="chip chip-health-{{.Verdict}}">{{.VerdictLabel}}</span></td>
@@ -90,6 +90,9 @@
.app-list .app-meta-label { display: none; }
.app-list tr[data-app-row] { position: relative; }
.app-list .app-name a { display: inline-flex; align-items: center; gap: 0.65rem; max-width: 100%; min-height: 44px; }
+.app-name-line { display: flex; align-items: center; min-width: 0; }
+.app-name-line .app-star { flex: none; }
+.app-name-line > a { min-width: 0; }
.app-label { min-width: 0; overflow-wrap: anywhere; }
.app-list .app-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--rst-radius-sm); }
.app-list .app-name a:focus-visible { outline: none; }