[fix](trx-frontend-http): add /recorder SPA route and fix header wrap

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-31 03:02:12 +02:00
parent 10f25349e2
commit 5f99f87f81
3 changed files with 9 additions and 2 deletions
@@ -1116,9 +1116,9 @@ small { color: var(--text-muted); }
.top-bar-actions {
display: flex;
align-items: center;
gap: 0.6rem;
gap: 0.45rem 0.6rem;
min-width: 0;
overflow: hidden;
flex-wrap: wrap;
}
.header-bar-btn.header-audio-btn {
width: 2rem;
@@ -89,6 +89,12 @@ pub(crate) async fn digital_modes_index(req: HttpRequest) -> impl Responder {
static_asset_response(&req, "text/html; charset=utf-8", &c.gz, &c.etag)
}
#[get("/recorder")]
pub(crate) async fn recorder_index(req: HttpRequest) -> impl Responder {
let c = gz_index_html();
static_asset_response(&req, "text/html; charset=utf-8", &c.gz, &c.etag)
}
#[get("/settings")]
pub(crate) async fn settings_index(req: HttpRequest) -> impl Responder {
let c = gz_index_html();
@@ -618,6 +618,7 @@ pub fn configure(cfg: &mut web::ServiceConfig) {
.service(assets::index)
.service(assets::map_index)
.service(assets::digital_modes_index)
.service(assets::recorder_index)
.service(assets::settings_index)
.service(assets::about_index)
.service(assets::favicon)