feat(calls): call controls centered in the header
- Title and chips left, controls in the middle, Return right - Both side groups share the rest evenly, so the controls stay centered and the title truncates first Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -1278,6 +1278,12 @@ pub fn render_call_view(
1278
1278
.pl(px(20.))
1279
1279
.pr(px(HEADER_END_PADDING))
1280
1280
.gap(px(12.))
1281
.items_center();
1282
let title_group = h_flex()
1283
.flex_1()
1284
.flex_basis(px(0.))
1285
.min_w_0()
1286
.gap(px(12.))
1281
1287
.items_center()
1282
1288
.child(icon(IconName::Phone, 18., theme::accent_text()))
1283
1289
.child(
@@ -1298,8 +1304,13 @@ pub fn render_call_view(
1298
1304
.children(health_indicator(model))
1299
1305
.children(recording_chip(model))
1300
1306
.children(lock_chip(model))
1301
.children(room_chip(model))
1302
.child(div().flex_1())
1307
.children(room_chip(model));
1308
let end_group = h_flex()
1309
.flex_1()
1310
.flex_basis(px(0.))
1311
.min_w_0()
1312
.justify_end()
1313
.items_center()
1303
1314
.children(return_button(app, model));
1304
1315
1305
1316
let hold = hold_panel(app, model);
@@ -1361,7 +1372,7 @@ pub fn render_call_view(
1361
1372
.child(panels_and_reactions)
1362
1373
.child(stage_and_more)
1363
1374
.child(leave_group(app, model));
1364
let header = header.child(controls);
1375
let header = header.child(title_group).child(controls).child(end_group);
1365
1376
1366
1377
let top = v_flex()
1367
1378
.w_full()
@@ -1278,6 +1278,12 @@ pub fn render_call_view(1278
.pl(px(20.))1278
.pl(px(20.))1279
.pr(px(HEADER_END_PADDING))1279
.pr(px(HEADER_END_PADDING))1280
.gap(px(12.))1280
.gap(px(12.))1281
.items_center();1282
let title_group = h_flex()1283
.flex_1()1284
.flex_basis(px(0.))1285
.min_w_0()1286
.gap(px(12.))1281
.items_center()1287
.items_center()1282
.child(icon(IconName::Phone, 18., theme::accent_text()))1288
.child(icon(IconName::Phone, 18., theme::accent_text()))1283
.child(1289
.child(@@ -1298,8 +1304,13 @@ pub fn render_call_view(1298
.children(health_indicator(model))1304
.children(health_indicator(model))1299
.children(recording_chip(model))1305
.children(recording_chip(model))1300
.children(lock_chip(model))1306
.children(lock_chip(model))1301
.children(room_chip(model))1307
.children(room_chip(model));1302
.child(div().flex_1())1308
let end_group = h_flex()1309
.flex_1()1310
.flex_basis(px(0.))1311
.min_w_0()1312
.justify_end()1313
.items_center()1303
.children(return_button(app, model));1314
.children(return_button(app, model));1304
1315
1305
let hold = hold_panel(app, model);1316
let hold = hold_panel(app, model);@@ -1361,7 +1372,7 @@ pub fn render_call_view(1361
.child(panels_and_reactions)1372
.child(panels_and_reactions)1362
.child(stage_and_more)1373
.child(stage_and_more)1363
.child(leave_group(app, model));1374
.child(leave_group(app, model));1364
let header = header.child(controls);1375
let header = header.child(title_group).child(controls).child(end_group);1365
1376
1366
let top = v_flex()1377
let top = v_flex()1367
.w_full()1378
.w_full()