Skip to content

Commit 25d581c

Browse files
committed
Make labels and headings more minimal
- Fix text replication when resizing terminal window - Fix task coloring issues when text wraps - Remove pagination heading from flow timer form - Simplify description field labels - Update version to 1.7.4
1 parent 9e176b6 commit 25d581c

4 files changed

Lines changed: 21 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 1.7.4 (2025-09-11)
2+
3+
### Fixed
4+
- Fix text replication issue when resizing terminal window
5+
- Fix task name coloring issues when text wraps by using MaxWidth and Render methods
6+
7+
### Changed
8+
- Remove pagination heading "Flow timer setup (1/4)" from flow timer form
9+
- Simplify description field title and placeholder text for better readability
10+
111
## 1.7.3 (2025-09-11)
212

313
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a href="https://goreportcard.com/report/github.com/ronilaukkarinen/focus"><img src="https://goreportcard.com/badge/github.com/ronilaukkarinen/focus" alt="GoReportCard"></a>
99
<a href="https://github.com/ronilaukkarinen/focus"><img src="https://img.shields.io/badge/go-1.24-blue.svg" alt="Go version"></a>
1010
<a href="https://github.com/ronilaukkarinen/focus/blob/master/LICENCE"><img src="https://img.shields.io/github/license/ronilaukkarinen/focus.svg" alt="LICENCE"></a>
11-
<a href="https://github.com/ronilaukkarinen/focus/releases/"><img src="https://img.shields.io/badge/version-1.7.3-blue.svg" alt="Latest release"></a>
11+
<a href="https://github.com/ronilaukkarinen/focus/releases/"><img src="https://img.shields.io/badge/version-1.7.4-blue.svg" alt="Latest release"></a>
1212
</p>
1313

1414
<h1 align="center">Focus on your task - with flow timer!</h1>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ronilaukkarinen/focus",
3-
"version": "1.7.3",
3+
"version": "1.7.4",
44
"description": "Focus is a flexible command-line productivity timer with flow mode for uninterrupted work sessions",
55
"main": "",
66
"repository": "https://github.com/ronilaukkarinen/focus",

timer/views.go

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -143,25 +143,19 @@ func (t *Timer) timerView() string {
143143
)
144144
s.WriteString("\n")
145145

146-
// Task name on its own line with wrapping
147-
s.WriteString(
148-
lipgloss.NewStyle().
149-
Foreground(lipgloss.Color("#B0DB43")). // Neon green
150-
Width(maxWidth).
151-
SetString(t.taskName).
152-
String(),
153-
)
146+
// Task name on its own line - use Render instead of SetString for proper wrapping
147+
taskStyle := lipgloss.NewStyle().
148+
Foreground(lipgloss.Color("#B0DB43")). // Neon green
149+
MaxWidth(maxWidth)
150+
s.WriteString(taskStyle.Render(t.taskName))
154151
s.WriteString("\n")
155152

156153
// Task description if provided
157154
if t.taskDescription != "" {
158-
s.WriteString(
159-
lipgloss.NewStyle().
160-
Foreground(lipgloss.Color("#888888")). // Light gray
161-
Width(maxWidth).
162-
SetString(t.taskDescription).
163-
String(),
164-
)
155+
descStyle := lipgloss.NewStyle().
156+
Foreground(lipgloss.Color("#888888")). // Light gray
157+
MaxWidth(maxWidth)
158+
s.WriteString(descStyle.Render(t.taskDescription))
165159
s.WriteString("\n")
166160
}
167161

0 commit comments

Comments
 (0)