about summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-03-03 16:57:21 -0500
committerDrew DeVault <sir@cmpwn.com>2020-03-03 16:57:21 -0500
commit403b6af37916aad984fb340147a499f61daf1132 (patch)
tree0f23cb1044105b5a693226f6ae40fbea4cc153ac /widgets
parentf3158b36f1f210ff54febbe82b571c1379b30c98 (diff)
downloadaerc-403b6af37916aad984fb340147a499f61daf1132.tar.gz
compose: add space between headers and editor
Until the PGP changes, this was merged into the header widget.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/compose.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/widgets/compose.go b/widgets/compose.go
index 0e837e5..a97e5fe 100644
--- a/widgets/compose.go
+++ b/widgets/compose.go
@@ -649,7 +649,7 @@ func (c *Composer) resetReview() {
 	if c.review != nil {
 		c.grid.RemoveChild(c.review)
 		c.review = newReviewMessage(c, nil)
-		c.grid.AddChild(c.review).At(1, 0)
+		c.grid.AddChild(c.review).At(2, 0)
 	}
 }
 
@@ -668,7 +668,7 @@ func (c *Composer) termEvent(event tcell.Event) bool {
 func (c *Composer) termClosed(err error) {
 	c.grid.RemoveChild(c.editor)
 	c.review = newReviewMessage(c, err)
-	c.grid.AddChild(c.review).At(1, 0)
+	c.grid.AddChild(c.review).At(2, 0)
 	c.editor.Destroy()
 	c.editor = nil
 	c.focusable = c.focusable[:len(c.focusable)-1]
@@ -695,7 +695,7 @@ func (c *Composer) ShowTerminal() {
 	c.editor, _ = NewTerminal(editor) // TODO: handle error
 	c.editor.OnEvent = c.termEvent
 	c.editor.OnClose = c.termClosed
-	c.grid.AddChild(c.editor).At(1, 0)
+	c.grid.AddChild(c.editor).At(2, 0)
 	c.focusable = append(c.focusable, c.editor)
 }
 
@@ -768,6 +768,7 @@ func (c *Composer) updateGrid() {
 
 	c.grid.Rows([]ui.GridSpec{
 		{ui.SIZE_EXACT, height},
+		{ui.SIZE_EXACT, 1},
 		{ui.SIZE_WEIGHT, 1},
 	})
 
@@ -776,6 +777,7 @@ func (c *Composer) updateGrid() {
 	}
 	c.header = header
 	c.grid.AddChild(c.header).At(0, 0)
+	c.grid.AddChild(ui.NewFill(' ')).At(1, 0)
 }
 
 func (c *Composer) reloadEmail() error {
4665'>^
94c5d83e ^







76f8d548 ^



94c5d83e ^


423ce88a ^

94c5d83e ^








e9e4b4ff ^

50a0cb1c ^
e9e4b4ff ^

606df33e ^
e9e4b4ff ^
fde932f2 ^
e9e4b4ff ^


2c5ea01d ^
e9e4b4ff ^




e9e4b4ff ^

2c5ea01d ^
e9e4b4ff ^
0c2c782d ^

6ac4be61 ^
ea775b1c ^








6ac4be61 ^
ea775b1c ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104