Small header thumbnail showing exactly what the frame is currently
displaying -- same widget compositor /frame/image uses, handed back as
a plain PNG (image_pipeline.render_panel/render_placeholder gain an
as_png option) instead of packed native-panel bytes. New session-authed
GET /api/frames/{id}/preview exposes it; click-to-refresh plus a slow
60s poll on the frame header so it doesn't hammer Immich/calendar
sources just for a header thumbnail.
12 lines
794 B
HTML
12 lines
794 B
HTML
<span class="frame-name-view" id="frame-name-view">
|
|
<span id="frame-name-text">{{ frame.name or ("Frame " ~ frame.id) }}</span>
|
|
<button type="button" class="frame-name-pencil" id="frame-name-pencil" title="Rename frame" aria-label="Rename frame">✎</button>
|
|
</span>
|
|
<span class="frame-name-edit" id="frame-name-edit-row" style="display: none;">
|
|
<input type="text" id="frame-name-input" maxlength="64" value="{{ frame.name }}">
|
|
<button type="button" class="btn-inline" id="frame-name-save">Save</button>
|
|
<button type="button" class="btn-inline secondary" id="frame-name-cancel">Cancel</button>
|
|
</span>
|
|
<img id="frame-preview-thumb" class="frame-preview-thumb" alt="Live preview of what the frame is displaying" title="What the frame is currently displaying -- click to refresh">
|
|
|