Skip to content

Commit 629e693

Browse files
committed
compose: don't pad EditAttachments area
Signed-off-by: Manos Pitsidianakis <[email protected]>
1 parent 5bcd62c commit 629e693

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

meli/src/mail/compose.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,15 +1191,11 @@ impl Component for Composer {
11911191
match self.mode {
11921192
ViewMode::Edit | ViewMode::EmbeddedPty => {}
11931193
ViewMode::EditAttachments { ref mut widget } => {
1194-
let inner_area = area.center_inside((
1195-
area.width().saturating_sub(2),
1196-
area.height().saturating_sub(2),
1197-
));
11981194
(EditAttachmentsRefMut {
11991195
inner: widget,
12001196
draft: &mut self.draft,
12011197
})
1202-
.draw(grid, inner_area, context);
1198+
.draw(grid, area, context);
12031199
}
12041200
ViewMode::Send(ref mut s) => {
12051201
let inner_area = area.center_inside((

0 commit comments

Comments
 (0)