Minor fixes
This commit is contained in:
@ -794,11 +794,12 @@ func NewDetailsEdit(com *common.Common, task *taskwarrior.Task) *detailsEdit {
|
||||
// return nil
|
||||
// }
|
||||
|
||||
vp := viewport.New(40, 30)
|
||||
vp := viewport.New(com.Width(), 40-com.Styles.ColumnFocused.GetVerticalFrameSize())
|
||||
ta := textarea.New()
|
||||
ta.SetWidth(40)
|
||||
ta.SetHeight(30)
|
||||
ta.SetWidth(70)
|
||||
ta.SetHeight(40 - com.Styles.ColumnFocused.GetVerticalFrameSize() - 2)
|
||||
ta.ShowLineNumbers = false
|
||||
ta.FocusedStyle.CursorLine = lipgloss.NewStyle()
|
||||
ta.Focus()
|
||||
if task.Udas["details"] != nil {
|
||||
ta.SetValue(task.Udas["details"].(string))
|
||||
|
||||
Reference in New Issue
Block a user