feat(composer): all composer actions on the right like Teams
- Format, delivery options, emoji and attach sit next to send - Emoji popover and delivery menu open from the right edge - layout_guard checks the input and action insets Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -184,7 +184,7 @@ mod frames {
184
184
};
185
185
use crate::views::composer::{
186
186
COMPOSER_BOX_TAG, COMPOSER_FORMAT_BAR_TAG, COMPOSER_FORMAT_DIVIDER_TAG,
187
COMPOSER_FORMAT_TAG, COMPOSER_LEADING_TAG, COMPOSER_SEND_TAG,
187
COMPOSER_ACTIONS_TAG, COMPOSER_FORMAT_TAG, COMPOSER_INPUT_TAG, COMPOSER_SEND_TAG,
188
188
};
189
189
use crate::views::conversation::{
190
190
CHANNEL_DETAILS_BUTTON, CHANNEL_DETAILS_PINNED_TAG, CHANNEL_DETAILS_SHARED_TAG,
@@ -2211,12 +2211,13 @@ mod frames {
2211
2211
.unwrap_or_else(|| panic!("{path} rendered"))
2212
2212
};
2213
2213
let composer = bounds_of(COMPOSER_BOX_TAG);
2214
let leading = bounds_of(COMPOSER_LEADING_TAG);
2214
let input = bounds_of(COMPOSER_INPUT_TAG);
2215
let actions = bounds_of(COMPOSER_ACTIONS_TAG);
2215
2216
let send = bounds_of(COMPOSER_SEND_TAG);
2216
2217
[
2217
f32::from(leading.left() - composer.left()),
2218
f32::from(leading.top() - composer.top()),
2219
f32::from(composer.bottom() - leading.bottom()),
2218
f32::from(input.left() - composer.left()),
2219
f32::from(actions.top() - composer.top()),
2220
f32::from(composer.bottom() - actions.bottom()),
2220
2221
f32::from(composer.right() - send.right()),
2221
2222
f32::from(send.top() - composer.top()),
2222
2223
f32::from(composer.bottom() - send.bottom()),
@@ -2234,16 +2235,11 @@ mod frames {
2234
2235
single_line
2235
2236
.iter()
2236
2237
.all(|inset| (inset - left).abs() < TOLERANCE),
2237
"single line: insets left, top, bottom of the first button and right, top, bottom of send {single_line:?}"
2238
"single line: insets of the input left, the actions top and bottom, send right, top and bottom {single_line:?}"
2238
2239
);
2239
let leading = visual
2240
.debug_bounds(COMPOSER_LEADING_TAG)
2241
.expect("leading buttons");
2240
let input = visual.debug_bounds(COMPOSER_INPUT_TAG).expect("input");
2242
2241
let send = visual.debug_bounds(COMPOSER_SEND_TAG).expect("send button");
2243
visual.simulate_click(
2244
point((leading.right() + send.left()) / 2., send.center().y),
2245
Default::default(),
2246
);
2242
visual.simulate_click(point(input.center().x, send.center().y), Default::default());
2247
2243
visual.simulate_keystrokes("o n e shift-enter t w o shift-enter t h r e e");
2248
2244
let three_lines = composer_button_insets(&mut visual);
2249
2245
assert!(
@@ -2258,7 +2254,7 @@ mod frames {
2258
2254
] {
2259
2255
assert!(
2260
2256
(inset - left).abs() < TOLERANCE,
2261
"three lines: insets left, top, bottom of the first button and right, top, bottom of send {three_lines:?}, expected {left}"
2257
"three lines: insets of the input left, the actions top and bottom, send right, top and bottom {three_lines:?}, expected {left}"
2262
2258
);
2263
2259
}
2264
2260
}
@@ -2269,7 +2265,7 @@ mod frames {
2269
2265
COMPOSER_BOX_TAG,
2270
2266
COMPOSER_FORMAT_BAR_TAG,
2271
2267
COMPOSER_FORMAT_DIVIDER_TAG,
2272
COMPOSER_LEADING_TAG,
2268
COMPOSER_ACTIONS_TAG,
2273
2269
COMPOSER_FORMAT_TAG,
2274
2270
COMPOSER_SEND_TAG,
2275
2271
];
@@ -2296,7 +2292,7 @@ mod frames {
2296
2292
.map(|(key, message)| format!("format@{width}x{height}:{key}: {message}"))
2297
2293
.collect();
2298
2294
let bar = visual.debug_bounds(COMPOSER_FORMAT_BAR_TAG).expect("bar");
2299
let leading = visual.debug_bounds(COMPOSER_LEADING_TAG).expect("leading");
2295
let actions = visual.debug_bounds(COMPOSER_ACTIONS_TAG).expect("actions");
2300
2296
let toggle = visual
2301
2297
.debug_bounds(COMPOSER_FORMAT_TAG)
2302
2298
.expect("format button");
@@ -2304,8 +2300,8 @@ mod frames {
2304
2300
collect(&mut visual, None);
2305
2301
assert!(found.is_empty(), "{}", found.join("\n"));
2306
2302
assert!(
2307
bar.bottom() <= leading.top(),
2308
"bar {bar:?} over the buttons {leading:?}"
2303
bar.bottom() <= actions.top(),
2304
"bar {bar:?} over the buttons {actions:?}"
2309
2305
);
2310
2306
assert!(visual.debug_bounds(COMPOSER_FORMAT_BAR_TAG).is_none());
2311
2307
}
@@ -2337,13 +2333,13 @@ mod frames {
2337
2333
fn delivery_options_label_and_banner_line_up_with_the_composer(cx: &mut TestAppContext) {
2338
2334
const DELIVERY_TAGS: [&str; 5] = [
2339
2335
COMPOSER_BOX_TAG,
2340
COMPOSER_LEADING_TAG,
2336
COMPOSER_ACTIONS_TAG,
2341
2337
COMPOSER_DELIVERY_TAG,
2342
2338
COMPOSER_IMPORTANCE_LABEL_TAG,
2343
2339
COMPOSER_URGENT_BANNER_TAG,
2344
2340
];
2345
2341
const URGENT_OPTION: &str = "urgent-delivery-option";
2346
const BUTTON_ICON_INSET: f32 = 6.;
2342
const TEXT_INSET: f32 = 6.;
2347
2343
let (handle, _) = mount(cx);
2348
2344
let mut visual = VisualTestContext::from_window(handle, cx);
2349
2345
for (width, height) in SIZES {
@@ -2384,7 +2380,7 @@ mod frames {
2384
2380
let label = visual
2385
2381
.debug_bounds(COMPOSER_IMPORTANCE_LABEL_TAG)
2386
2382
.expect("label");
2387
let leading = visual.debug_bounds(COMPOSER_LEADING_TAG).expect("leading");
2383
let input = visual.debug_bounds(COMPOSER_INPUT_TAG).expect("input");
2388
2384
assert!(
2389
2385
(f32::from(banner.left() - composer.left())).abs() <= TOLERANCE
2390
2386
&& (f32::from(banner.right() - composer.right())).abs() <= TOLERANCE,
@@ -2400,13 +2396,13 @@ mod frames {
2400
2396
);
2401
2397
assert!(
2402
2398
(inset(composer, label, Edge::Left)
2403
- inset(composer, leading, Edge::Left)
2404
- BUTTON_ICON_INSET)
2399
- inset(composer, input, Edge::Left)
2400
- TEXT_INSET)
2405
2401
.abs()
2406
2402
<= TOLERANCE,
2407
"label {} not on the icon edge of {}",
2403
"label {} not on the text edge of {}",
2408
2404
describe(label),
2409
describe(leading)
2405
describe(input)
2410
2406
);
2411
2407
let close = visual
2412
2408
.debug_bounds(COMPOSER_URGENT_BANNER_TAG)
@@ -184,7 +184,7 @@ mod frames {184
};184
};185
use crate::views::composer::{185
use crate::views::composer::{186
COMPOSER_BOX_TAG, COMPOSER_FORMAT_BAR_TAG, COMPOSER_FORMAT_DIVIDER_TAG,186
COMPOSER_BOX_TAG, COMPOSER_FORMAT_BAR_TAG, COMPOSER_FORMAT_DIVIDER_TAG,187
COMPOSER_FORMAT_TAG, COMPOSER_LEADING_TAG, COMPOSER_SEND_TAG,187
COMPOSER_ACTIONS_TAG, COMPOSER_FORMAT_TAG, COMPOSER_INPUT_TAG, COMPOSER_SEND_TAG,188
};188
};189
use crate::views::conversation::{189
use crate::views::conversation::{190
CHANNEL_DETAILS_BUTTON, CHANNEL_DETAILS_PINNED_TAG, CHANNEL_DETAILS_SHARED_TAG,190
CHANNEL_DETAILS_BUTTON, CHANNEL_DETAILS_PINNED_TAG, CHANNEL_DETAILS_SHARED_TAG,@@ -2211,12 +2211,13 @@ mod frames {2211
.unwrap_or_else(|| panic!("{path} rendered"))2211
.unwrap_or_else(|| panic!("{path} rendered"))2212
};2212
};2213
let composer = bounds_of(COMPOSER_BOX_TAG);2213
let composer = bounds_of(COMPOSER_BOX_TAG);2214
let leading = bounds_of(COMPOSER_LEADING_TAG);2214
let input = bounds_of(COMPOSER_INPUT_TAG);2215
let actions = bounds_of(COMPOSER_ACTIONS_TAG);2215
let send = bounds_of(COMPOSER_SEND_TAG);2216
let send = bounds_of(COMPOSER_SEND_TAG);2216
[2217
[2217
f32::from(leading.left() - composer.left()),2218
f32::from(input.left() - composer.left()),2218
f32::from(leading.top() - composer.top()),2219
f32::from(actions.top() - composer.top()),2219
f32::from(composer.bottom() - leading.bottom()),2220
f32::from(composer.bottom() - actions.bottom()),2220
f32::from(composer.right() - send.right()),2221
f32::from(composer.right() - send.right()),2221
f32::from(send.top() - composer.top()),2222
f32::from(send.top() - composer.top()),2222
f32::from(composer.bottom() - send.bottom()),2223
f32::from(composer.bottom() - send.bottom()),@@ -2234,16 +2235,11 @@ mod frames {2234
single_line2235
single_line2235
.iter()2236
.iter()2236
.all(|inset| (inset - left).abs() < TOLERANCE),2237
.all(|inset| (inset - left).abs() < TOLERANCE),2237
"single line: insets left, top, bottom of the first button and right, top, bottom of send {single_line:?}"2238
"single line: insets of the input left, the actions top and bottom, send right, top and bottom {single_line:?}"2238
);2239
);2239
let leading = visual2240
let input = visual.debug_bounds(COMPOSER_INPUT_TAG).expect("input");2240
.debug_bounds(COMPOSER_LEADING_TAG)2241
.expect("leading buttons");2242
let send = visual.debug_bounds(COMPOSER_SEND_TAG).expect("send button");2241
let send = visual.debug_bounds(COMPOSER_SEND_TAG).expect("send button");2243
visual.simulate_click(2242
visual.simulate_click(point(input.center().x, send.center().y), Default::default());2244
point((leading.right() + send.left()) / 2., send.center().y),2245
Default::default(),2246
);2247
visual.simulate_keystrokes("o n e shift-enter t w o shift-enter t h r e e");2243
visual.simulate_keystrokes("o n e shift-enter t w o shift-enter t h r e e");2248
let three_lines = composer_button_insets(&mut visual);2244
let three_lines = composer_button_insets(&mut visual);2249
assert!(2245
assert!(@@ -2258,7 +2254,7 @@ mod frames {2258
] {2254
] {2259
assert!(2255
assert!(2260
(inset - left).abs() < TOLERANCE,2256
(inset - left).abs() < TOLERANCE,2261
"three lines: insets left, top, bottom of the first button and right, top, bottom of send {three_lines:?}, expected {left}"2257
"three lines: insets of the input left, the actions top and bottom, send right, top and bottom {three_lines:?}, expected {left}"2262
);2258
);2263
}2259
}2264
}2260
}@@ -2269,7 +2265,7 @@ mod frames {2269
COMPOSER_BOX_TAG,2265
COMPOSER_BOX_TAG,2270
COMPOSER_FORMAT_BAR_TAG,2266
COMPOSER_FORMAT_BAR_TAG,2271
COMPOSER_FORMAT_DIVIDER_TAG,2267
COMPOSER_FORMAT_DIVIDER_TAG,2272
COMPOSER_LEADING_TAG,2268
COMPOSER_ACTIONS_TAG,2273
COMPOSER_FORMAT_TAG,2269
COMPOSER_FORMAT_TAG,2274
COMPOSER_SEND_TAG,2270
COMPOSER_SEND_TAG,2275
];2271
];@@ -2296,7 +2292,7 @@ mod frames {2296
.map(|(key, message)| format!("format@{width}x{height}:{key}: {message}"))2292
.map(|(key, message)| format!("format@{width}x{height}:{key}: {message}"))2297
.collect();2293
.collect();2298
let bar = visual.debug_bounds(COMPOSER_FORMAT_BAR_TAG).expect("bar");2294
let bar = visual.debug_bounds(COMPOSER_FORMAT_BAR_TAG).expect("bar");2299
let leading = visual.debug_bounds(COMPOSER_LEADING_TAG).expect("leading");2295
let actions = visual.debug_bounds(COMPOSER_ACTIONS_TAG).expect("actions");2300
let toggle = visual2296
let toggle = visual2301
.debug_bounds(COMPOSER_FORMAT_TAG)2297
.debug_bounds(COMPOSER_FORMAT_TAG)2302
.expect("format button");2298
.expect("format button");@@ -2304,8 +2300,8 @@ mod frames {2304
collect(&mut visual, None);2300
collect(&mut visual, None);2305
assert!(found.is_empty(), "{}", found.join("\n"));2301
assert!(found.is_empty(), "{}", found.join("\n"));2306
assert!(2302
assert!(2307
bar.bottom() <= leading.top(),2303
bar.bottom() <= actions.top(),2308
"bar {bar:?} over the buttons {leading:?}"2304
"bar {bar:?} over the buttons {actions:?}"2309
);2305
);2310
assert!(visual.debug_bounds(COMPOSER_FORMAT_BAR_TAG).is_none());2306
assert!(visual.debug_bounds(COMPOSER_FORMAT_BAR_TAG).is_none());2311
}2307
}@@ -2337,13 +2333,13 @@ mod frames {2337
fn delivery_options_label_and_banner_line_up_with_the_composer(cx: &mut TestAppContext) {2333
fn delivery_options_label_and_banner_line_up_with_the_composer(cx: &mut TestAppContext) {2338
const DELIVERY_TAGS: [&str; 5] = [2334
const DELIVERY_TAGS: [&str; 5] = [2339
COMPOSER_BOX_TAG,2335
COMPOSER_BOX_TAG,2340
COMPOSER_LEADING_TAG,2336
COMPOSER_ACTIONS_TAG,2341
COMPOSER_DELIVERY_TAG,2337
COMPOSER_DELIVERY_TAG,2342
COMPOSER_IMPORTANCE_LABEL_TAG,2338
COMPOSER_IMPORTANCE_LABEL_TAG,2343
COMPOSER_URGENT_BANNER_TAG,2339
COMPOSER_URGENT_BANNER_TAG,2344
];2340
];2345
const URGENT_OPTION: &str = "urgent-delivery-option";2341
const URGENT_OPTION: &str = "urgent-delivery-option";2346
const BUTTON_ICON_INSET: f32 = 6.;2342
const TEXT_INSET: f32 = 6.;2347
let (handle, _) = mount(cx);2343
let (handle, _) = mount(cx);2348
let mut visual = VisualTestContext::from_window(handle, cx);2344
let mut visual = VisualTestContext::from_window(handle, cx);2349
for (width, height) in SIZES {2345
for (width, height) in SIZES {@@ -2384,7 +2380,7 @@ mod frames {2384
let label = visual2380
let label = visual2385
.debug_bounds(COMPOSER_IMPORTANCE_LABEL_TAG)2381
.debug_bounds(COMPOSER_IMPORTANCE_LABEL_TAG)2386
.expect("label");2382
.expect("label");2387
let leading = visual.debug_bounds(COMPOSER_LEADING_TAG).expect("leading");2383
let input = visual.debug_bounds(COMPOSER_INPUT_TAG).expect("input");2388
assert!(2384
assert!(2389
(f32::from(banner.left() - composer.left())).abs() <= TOLERANCE2385
(f32::from(banner.left() - composer.left())).abs() <= TOLERANCE2390
&& (f32::from(banner.right() - composer.right())).abs() <= TOLERANCE,2386
&& (f32::from(banner.right() - composer.right())).abs() <= TOLERANCE,@@ -2400,13 +2396,13 @@ mod frames {2400
);2396
);2401
assert!(2397
assert!(2402
(inset(composer, label, Edge::Left)2398
(inset(composer, label, Edge::Left)2403
- inset(composer, leading, Edge::Left)2399
- inset(composer, input, Edge::Left)2404
- BUTTON_ICON_INSET)2400
- TEXT_INSET)2405
.abs()2401
.abs()2406
<= TOLERANCE,2402
<= TOLERANCE,2407
"label {} not on the icon edge of {}",2403
"label {} not on the text edge of {}",2408
describe(label),2404
describe(label),2409
describe(leading)2405
describe(input)2410
);2406
);2411
let close = visual2407
let close = visual2412
.debug_bounds(COMPOSER_URGENT_BANNER_TAG)2408
.debug_bounds(COMPOSER_URGENT_BANNER_TAG)@@ -86,9 +86,10 @@ const COMPOSER_ICON_SIZE: f32 = 20.;
86
86
const COMPOSER_BUTTON_SIZE: f32 = 32.;
87
87
const COMPOSER_BUTTON_INSET: f32 = 6.;
88
88
pub const COMPOSER_BOX_TAG: &str = "composer";
89
pub const COMPOSER_LEADING_TAG: &str = "composer/leading";
89
pub const COMPOSER_ACTIONS_TAG: &str = "composer/actions";
90
pub const COMPOSER_INPUT_TAG: &str = "composer/input";
90
91
pub const COMPOSER_SEND_TAG: &str = "composer/send";
91
pub const COMPOSER_FORMAT_TAG: &str = "composer/leading/format";
92
pub const COMPOSER_FORMAT_TAG: &str = "composer/actions/format";
92
93
pub const COMPOSER_FORMAT_BAR_TAG: &str = "composer/format-bar";
93
94
pub const COMPOSER_FORMAT_DIVIDER_TAG: &str = "composer/format-bar/divider";
94
95
/// gpui-kit draws a `Size::Size` button's icon at this fraction of the button size.
@@ -2877,7 +2878,7 @@ impl Render for Composer {
2877
2878
let picker = self.fun_picker.clone();
2878
2879
let reset_picker = self.fun_picker.clone();
2879
2880
Popover::new("composer-fun-popover")
2880
.anchor(Anchor::BottomLeft)
2881
.anchor(Anchor::BottomRight)
2881
2882
.offset(px(10.))
2882
2883
.p_0()
2883
2884
.trigger(
@@ -3410,18 +3411,9 @@ impl Render for Composer {
3410
3411
})
3411
3412
.py(px(COMPOSER_BUTTON_INSET))
3412
3413
.px(px(COMPOSER_BUTTON_INSET))
3413
.child(
3414
h_flex()
3415
.debug_selector(|| COMPOSER_LEADING_TAG.into())
3416
.flex_none()
3417
.gap(px(COMPOSER_BUTTON_INSET))
3418
.children(format_toggle)
3419
.children(self.render_delivery_button(cx))
3420
.children(fun)
3421
.children(attach),
3422
)
3423
3414
.child(
3424
3415
div()
3416
.debug_selector(|| COMPOSER_INPUT_TAG.into())
3425
3417
.flex_1()
3426
3418
.min_w_0()
3427
3419
.capture_any_mouse_down(cx.listener(
@@ -3446,6 +3438,17 @@ impl Render for Composer {
3446
3438
)
3447
3439
.child(input),
3448
3440
)
3441
.child(
3442
h_flex()
3443
.debug_selector(|| COMPOSER_ACTIONS_TAG.into())
3444
.flex_none()
3445
.ml(px(COMPOSER_BUTTON_INSET))
3446
.gap(px(COMPOSER_BUTTON_INSET))
3447
.children(format_toggle)
3448
.children(self.render_delivery_button(cx))
3449
.children(fun)
3450
.children(attach),
3451
)
3449
3452
.child(send),
3450
3453
),
3451
3454
),
@@ -86,9 +86,10 @@ const COMPOSER_ICON_SIZE: f32 = 20.;86
const COMPOSER_BUTTON_SIZE: f32 = 32.;86
const COMPOSER_BUTTON_SIZE: f32 = 32.;87
const COMPOSER_BUTTON_INSET: f32 = 6.;87
const COMPOSER_BUTTON_INSET: f32 = 6.;88
pub const COMPOSER_BOX_TAG: &str = "composer";88
pub const COMPOSER_BOX_TAG: &str = "composer";89
pub const COMPOSER_LEADING_TAG: &str = "composer/leading";89
pub const COMPOSER_ACTIONS_TAG: &str = "composer/actions";90
pub const COMPOSER_INPUT_TAG: &str = "composer/input";90
pub const COMPOSER_SEND_TAG: &str = "composer/send";91
pub const COMPOSER_SEND_TAG: &str = "composer/send";91
pub const COMPOSER_FORMAT_TAG: &str = "composer/leading/format";92
pub const COMPOSER_FORMAT_TAG: &str = "composer/actions/format";92
pub const COMPOSER_FORMAT_BAR_TAG: &str = "composer/format-bar";93
pub const COMPOSER_FORMAT_BAR_TAG: &str = "composer/format-bar";93
pub const COMPOSER_FORMAT_DIVIDER_TAG: &str = "composer/format-bar/divider";94
pub const COMPOSER_FORMAT_DIVIDER_TAG: &str = "composer/format-bar/divider";94
/// gpui-kit draws a `Size::Size` button's icon at this fraction of the button size.95
/// gpui-kit draws a `Size::Size` button's icon at this fraction of the button size.@@ -2877,7 +2878,7 @@ impl Render for Composer {2877
let picker = self.fun_picker.clone();2878
let picker = self.fun_picker.clone();2878
let reset_picker = self.fun_picker.clone();2879
let reset_picker = self.fun_picker.clone();2879
Popover::new("composer-fun-popover")2880
Popover::new("composer-fun-popover")2880
.anchor(Anchor::BottomLeft)2881
.anchor(Anchor::BottomRight)2881
.offset(px(10.))2882
.offset(px(10.))2882
.p_0()2883
.p_0()2883
.trigger(2884
.trigger(@@ -3410,18 +3411,9 @@ impl Render for Composer {3410
})3411
})3411
.py(px(COMPOSER_BUTTON_INSET))3412
.py(px(COMPOSER_BUTTON_INSET))3412
.px(px(COMPOSER_BUTTON_INSET))3413
.px(px(COMPOSER_BUTTON_INSET))3413
.child(3414
h_flex()3415
.debug_selector(|| COMPOSER_LEADING_TAG.into())3416
.flex_none()3417
.gap(px(COMPOSER_BUTTON_INSET))3418
.children(format_toggle)3419
.children(self.render_delivery_button(cx))3420
.children(fun)3421
.children(attach),3422
)3423
.child(3414
.child(3424
div()3415
div()3416
.debug_selector(|| COMPOSER_INPUT_TAG.into())3425
.flex_1()3417
.flex_1()3426
.min_w_0()3418
.min_w_0()3427
.capture_any_mouse_down(cx.listener(3419
.capture_any_mouse_down(cx.listener(@@ -3446,6 +3438,17 @@ impl Render for Composer {3446
)3438
)3447
.child(input),3439
.child(input),3448
)3440
)3441
.child(3442
h_flex()3443
.debug_selector(|| COMPOSER_ACTIONS_TAG.into())3444
.flex_none()3445
.ml(px(COMPOSER_BUTTON_INSET))3446
.gap(px(COMPOSER_BUTTON_INSET))3447
.children(format_toggle)3448
.children(self.render_delivery_button(cx))3449
.children(fun)3450
.children(attach),3451
)3449
.child(send),3452
.child(send),3450
),3453
),3451
),3454
),@@ -17,7 +17,7 @@ use crate::importance::importance_label;
17
17
use crate::theme::{self, ElevatedSurface as _};
18
18
use crate::views::widgets::symbol;
19
19
20
pub const COMPOSER_DELIVERY_TAG: &str = "composer/leading/delivery";
20
pub const COMPOSER_DELIVERY_TAG: &str = "composer/actions/delivery";
21
21
pub const COMPOSER_IMPORTANCE_LABEL_TAG: &str = "composer/importance-label";
22
22
pub const COMPOSER_URGENT_BANNER_TAG: &str = "composer-urgent-banner";
23
23
pub const DELIVERY_MENU_TAG: &str = "delivery-menu";
@@ -123,7 +123,7 @@ impl Composer {
123
123
.debug_selector(|| DELIVERY_MENU_TAG.into())
124
124
.absolute()
125
125
.bottom(relative(1.))
126
.left_0()
126
.right_0()
127
127
.mb(px(6.))
128
128
.w(px(MENU_WIDTH))
129
129
.max_w(relative(1.))
@@ -17,7 +17,7 @@ use crate::importance::importance_label;17
use crate::theme::{self, ElevatedSurface as _};17
use crate::theme::{self, ElevatedSurface as _};18
use crate::views::widgets::symbol;18
use crate::views::widgets::symbol;19
19
20
pub const COMPOSER_DELIVERY_TAG: &str = "composer/leading/delivery";20
pub const COMPOSER_DELIVERY_TAG: &str = "composer/actions/delivery";21
pub const COMPOSER_IMPORTANCE_LABEL_TAG: &str = "composer/importance-label";21
pub const COMPOSER_IMPORTANCE_LABEL_TAG: &str = "composer/importance-label";22
pub const COMPOSER_URGENT_BANNER_TAG: &str = "composer-urgent-banner";22
pub const COMPOSER_URGENT_BANNER_TAG: &str = "composer-urgent-banner";23
pub const DELIVERY_MENU_TAG: &str = "delivery-menu";23
pub const DELIVERY_MENU_TAG: &str = "delivery-menu";@@ -123,7 +123,7 @@ impl Composer {123
.debug_selector(|| DELIVERY_MENU_TAG.into())123
.debug_selector(|| DELIVERY_MENU_TAG.into())124
.absolute()124
.absolute()125
.bottom(relative(1.))125
.bottom(relative(1.))126
.left_0()126
.right_0()127
.mb(px(6.))127
.mb(px(6.))128
.w(px(MENU_WIDTH))128
.w(px(MENU_WIDTH))129
.max_w(relative(1.))129
.max_w(relative(1.))