fix: always reserve space for selection marker to prevent text shift
Some checks failed
ci/woodpecker/pr/check Pipeline failed

Render "  " (2 spaces) for unselected messages instead of nothing,
so text stays aligned when navigating with the ▶ selection indicator.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mikhail Kilin
2026-02-24 15:49:08 +03:00
parent dfd4184039
commit a095fe277b
22 changed files with 54 additions and 58 deletions

View File

@@ -9,7 +9,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│Mom ──────────────── │
│ (14:33) What do you think about this?
(14:33) What do you think about this? │
│ │
│ │
│ │

View File

@@ -9,9 +9,9 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│Alice ──────────────── │
│ (14:33) 📷 [Фото]
│ (14:33) Caption for album
│ (14:33) 📷 [Фото]
(14:33) 📷 [Фото] │
(14:33) Caption for album │
(14:33) 📷 [Фото] │
│ │
│ │
│ │

View File

@@ -9,7 +9,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│Alice ──────────────── │
│ (14:33) 📷 [Фото]
(14:33) 📷 [Фото] │
│▶ (14:33) 📷 [Фото] │
│ │
│ │

View File

@@ -9,10 +9,10 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│Alice ──────────────── │
│ (14:33) Regular message before
│ (14:33) 📷 [Фото]
│ (14:33) Album caption
│ (14:33) Regular message after
(14:33) Regular message before │
(14:33) 📷 [Фото] │
(14:33) Album caption │
(14:33) Regular message after │
│ │
│ │
│ │

View File

@@ -9,7 +9,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│User ──────────────── │
│ (14:33) Message from the past
(14:33) Message from the past │
│ │
│ │
│ │

View File

@@ -9,7 +9,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│User ──────────────── │
│ (14:33 ✎) Edited text
(14:33 ✎) Edited text │
│ │
│ │
│ │

View File

@@ -10,7 +10,7 @@ expression: output
│ │
│User ──────────────── │
│↪ Переслано от Alice │
│ (14:33) Forwarded content
(14:33) Forwarded content │
│ │
│ │
│ │

View File

@@ -9,9 +9,9 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│User ──────────────── │
│ (14:33) This is a very long message that should wrap across multiple lines
│ when rendered in the terminal UI. Let's make it even longer to
│ ensure we test the wrapping behavior properly.
(14:33) This is a very long message that should wrap across multiple lines │
when rendered in the terminal UI. Let's make it even longer to │
ensure we test the wrapping behavior properly. │
│ │
│ │
│ │

View File

@@ -9,7 +9,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│User ──────────────── │
│ (14:33) **bold** *italic* `code`
(14:33) **bold** *italic* `code` │
│ │
│ │
│ │

View File

@@ -9,7 +9,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│User ──────────────── │
│ (14:33) Check [this](https://example.com) and @username
(14:33) Check [this](https://example.com) and @username │
│ │
│ │
│ │

View File

@@ -9,7 +9,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│User ──────────────── │
│ (14:33) Spoiler: ||hidden text||
(14:33) Spoiler: ||hidden text|| │
│ │
│ │
│ │

View File

@@ -9,7 +9,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│User ──────────────── │
│ (14:33) [Фото]
(14:33) [Фото] │
│ │
│ │
│ │

View File

@@ -9,7 +9,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│User ──────────────── │
│ (14:33) Popular message
(14:33) Popular message │
│[👍 ] 5 👎 3 │
│ │
│ │

View File

@@ -10,7 +10,7 @@ expression: output
│ │
│User ──────────────── │
│┌ Mom: Original message text │
│ (14:33) This is a reply
(14:33) This is a reply │
│ │
│ │
│ │

View File

@@ -9,7 +9,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│User ──────────────── │
│ (14:33) Selected message
(14:33) Selected message │
│ │
│ │
│ │

View File

@@ -9,11 +9,11 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│Alice ──────────────── │
│ (14:33) First message
│ (14:33) Second message
(14:33) First message │
(14:33) Second message │
│ │
│Bob ──────────────── │
│ (14:33) Third message
(14:33) Third message │
│ │
│ │
│ │

View File

@@ -9,7 +9,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│Mom ──────────────── │
│ (14:33) Hello there!
(14:33) Hello there! │
│ │
│ │
│ │

View File

@@ -9,7 +9,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│User ──────────────── │
│ (14:33) Great!
(14:33) Great! │
│[👍 ] │
│ │
│ │

View File

@@ -9,7 +9,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│User ──────────────── │
│ (14:33) React to this
(14:33) React to this │
│ │
│ ┌ Выбери реакцию ────────────────────────────────┐ │
│ │ │ │

View File

@@ -9,7 +9,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│User ──────────────── │
│ (14:33) React to this
(14:33) React to this │
│ │
│ ┌ Выбери реакцию ────────────────────────────────┐ │
│ │ │ │

View File

@@ -10,7 +10,7 @@ expression: output
│ ──────── 02.01.2022 ──────── │
│ │
│User ──────────────── │
│ (14:33) Regular message
(14:33) Regular message │
│ │
│ │
│ │