[PR #188] [MERGED] Pad strings in status bar to prevent reformatting #660

Closed
opened 2026-02-28 14:50:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Rigellute/spotify-tui/pull/188
Author: @jacobchrismarsh
Created: 12/9/2019
Status: Merged
Merged: 12/23/2019
Merged by: @Rigellute

Base: masterHead: padded_status_line


📝 Commits (1)

  • e3bb2ee Pad strings in status bar to prevent reformatting

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/ui/mod.rs (+1 -1)

📄 Description

Currently there are different-length strings for parameters, such as
On and Off. When you switch options, the bottom status bar
reformats. This is a worse user experience, so this diff pads the bottom
status line so that it never reformats.

The included gifs show the end result.

Old

old_spt

New

improved_spt


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Rigellute/spotify-tui/pull/188 **Author:** [@jacobchrismarsh](https://github.com/jacobchrismarsh) **Created:** 12/9/2019 **Status:** ✅ Merged **Merged:** 12/23/2019 **Merged by:** [@Rigellute](https://github.com/Rigellute) **Base:** `master` ← **Head:** `padded_status_line` --- ### 📝 Commits (1) - [`e3bb2ee`](https://github.com/Rigellute/spotify-tui/commit/e3bb2eefeefc293681d3646917bea72a93d8c7f1) Pad strings in status bar to prevent reformatting ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/ui/mod.rs` (+1 -1) </details> ### 📄 Description Currently there are different-length strings for parameters, such as `On` and `Off`. When you switch options, the bottom status bar reformats. This is a worse user experience, so this diff pads the bottom status line so that it never reformats. The included gifs show the end result. ### Old ![old_spt](https://user-images.githubusercontent.com/15932179/70408485-29631100-19fd-11ea-8733-84cae330f76f.gif) ### New ![improved_spt](https://user-images.githubusercontent.com/15932179/70408501-3f70d180-19fd-11ea-9fc2-b4fe6ceff00a.gif) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:50:23 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#660
No description provided.