Skip to content

Commit ddc08b4

Browse files
committed
chore: visual tweaks
1 parent 71d4ce1 commit ddc08b4

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

internal/ui/help.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,21 @@ var helpText = fmt.Sprintf(`%s
5454
helpSectionStyle.Render(`
5555
a Add a task
5656
u Update task details
57-
s Start/stop recording time on a task; stopping will open up the "Task Log Entry View"
58-
S Quick switch recording; will save a task log entry for the currently active task,
59-
and start recording time for another
60-
<ctrl+s> Edit the currently active task log/Add a new manual task log entry
57+
s Start/stop recording time on a task; stopping
58+
will open up the "Task Log Entry View"
59+
S Quick switch recording; will save a task log
60+
entry for the currently active task, and
61+
start recording time for another
62+
<ctrl+s> Edit the currently active task log/Add a new
63+
manual task log entry
6164
<ctrl+x> Discard currently active recording
6265
<ctrl+t> Go to currently tracked item
6366
<ctrl+d> Deactivate task
6467
`),
6568
helpHeaderStyle.Render("Task Logs List View"),
6669
helpSectionStyle.Render(`
67-
~ at the end of a task log comment indicates that it has more lines that are not visible in the list view
70+
~ at the end of a task log comment indicates that it has more lines that are not
71+
visible in the list view
6872
6973
d Show task log details
7074
<ctrl+s>/u Update task log entry

internal/ui/initial.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313

1414
const (
1515
tlCommentLengthLimit = 3000
16+
textInputWidth = 80
1617
)
1718

1819
func InitialModel(db *sql.DB) Model {
@@ -36,7 +37,7 @@ func InitialModel(db *sql.DB) Model {
3637
3738
This can be used to record details about your work on this task.`
3839
tLCommentInput.CharLimit = tlCommentLengthLimit
39-
tLCommentInput.SetWidth(100)
40+
tLCommentInput.SetWidth(textInputWidth)
4041
tLCommentInput.SetHeight(10)
4142
tLCommentInput.ShowLineNumbers = false
4243
tLCommentInput.Prompt = " ┃ "
@@ -46,7 +47,7 @@ This can be used to record details about your work on this task.`
4647
taskInputs[summaryField].Placeholder = "task summary goes here"
4748
taskInputs[summaryField].Focus()
4849
taskInputs[summaryField].CharLimit = 100
49-
taskInputs[entryBeginTS].Width = 60
50+
taskInputs[entryBeginTS].Width = textInputWidth
5051

5152
m := Model{
5253
db: db,

internal/ui/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
const (
1111
taskLogEntryViewHeading = "Task Log Entry"
1212
minHeightNeeded = 32
13-
minWidthNeeded = 110
13+
minWidthNeeded = 96
1414
)
1515

1616
var listWidth = 140

0 commit comments

Comments
 (0)