chore: use nbsp in emoticons #22

Merged
Ghost merged 0 commits from refs/pull/22/head into main 2025-09-16 21:52:05 +01:00
Ghost commented 2025-09-16 21:45:46 +01:00 (Migrated from codeberg.org)

Use non-breaking spaces instead of normal spaces in the emoticon. Otherwise, depending on the device width sometimes the emoticon ends up getting broken up across lines which doesn't look pretty. ^-^'

I encountered this issue on both Element and Fractal.

However… this actually doesn't seem to resolve the issue in either of them. I'm going to merge the commit anyway as in theory it should've. I'll investigate what else could be done, or perhaps this should just be reported upstream to the client maintainers.

Use non-breaking spaces instead of normal spaces in the emoticon. Otherwise, depending on the device width sometimes the emoticon ends up getting broken up across lines which doesn't look pretty. ^-^' I encountered this issue on both Element and Fractal. However… this actually doesn't seem to resolve the issue in either of them. I'm going to merge the commit anyway as in theory it should've. I'll investigate what else could be done, or perhaps this should just be reported upstream to the client maintainers.
Ghost commented 2025-09-16 21:46:43 +01:00 (Migrated from codeberg.org)

added 1 commit

Compare with previous version

added 1 commit <ul><li>d54e6fc0 - chore: use nbsp in emoticons</li></ul> [Compare with previous version](/SethFalco/matrix-stream-alerts/-/merge_requests/9/diffs?diff_id=1494599864&start_sha=31094418cc61d4538a648266959a543ac213feff)
Ghost commented 2025-09-16 21:52:08 +01:00 (Migrated from codeberg.org)

mentioned in commit 268cdc8522

mentioned in commit 268cdc8522635b2a60f48913020e2ab3ecd988a6
Ghost commented 2025-09-16 21:54:01 +01:00 (Migrated from codeberg.org)

I could be wrong, but it looks like Element, Firefox, or my OS itself may be converting the &nbsp; characters to regular spaces under some conditions. 🤔

So it may be that the Matrix bot will handle this better since it doesn't go through the Element client. I'll have to test this later.

I could be wrong, but it looks like Element, Firefox, or my OS itself may be converting the `&nbsp;` characters to regular spaces under some conditions. :thinking: So it may be that the Matrix bot will handle this better since it doesn't go through the Element client. I'll have to test this later.
Sign in to join this conversation.
No reviewers
No labels
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
SethFalco/matrix-stream-alerts!22
No description provided.