Commit Graph
728 Commits
Author SHA1 Message Date
7w1 c2bb68345a Add Resize the room sidepanel using a hoverable tool (#768)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Add the ability to resize the room sidebar, you can either do it in
settings as a number of the width of it, or using a hoverable thing.

Additionally you can now set whether and when do you want to show the
room's icon instead of the default symbol, mainly meant for when the
sidebar is not wide enough to display meaningful names to serve as an
aid to know which room you are in.

A good %age of the changes are just indentation from adding/removing one
object

(example of holding the bar to drag it)
<img width="1033" height="1080" alt="image"
src="https://github.com/user-attachments/assets/d7c6f47a-40a6-4199-9258-00f89119afd3"
/>

(example of smart looks)
<img width="1033" height="1080" alt="image"
src="https://github.com/user-attachments/assets/287ae643-1178-44b8-96e1-436185c93076"
/>
<img width="1060" height="1080" alt="image"
src="https://github.com/user-attachments/assets/3d915210-fa77-4844-8ce3-64afc244ae8c"
/>

(settings added here)
<img width="810" height="697" alt="image"
src="https://github.com/user-attachments/assets/fe925a68-63d7-4ad7-9c90-31243dd386d0"
/>
<img width="811" height="823" alt="image"
src="https://github.com/user-attachments/assets/c2266459-af86-4168-b8e5-aabacb057476"
/>

(example of the threads being resizeable)
<img width="918" height="1080" alt="image"
src="https://github.com/user-attachments/assets/d41d6749-489d-46ed-aa78-73aa54af8915"
/>
<img width="930" height="1080" alt="image"
src="https://github.com/user-attachments/assets/07677474-0ef3-4708-8eba-a64a68eac61c"
/>

<img width="816" height="1080" alt="image"
src="https://github.com/user-attachments/assets/23efa84d-c2e4-474b-a85f-d12fadc62b56"
/>

Fixes: #68 #102 #681 #694

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
The Pisan cats have helped me implement this
2026-05-13 06:09:16 +00:00
7w1 61cc04dece fix chromium scroll bars 2026-05-13 01:01:56 -05:00
7w1 7785d91f97 fix: matrix.to links with custom text being sent as escaped html 2026-05-12 21:05:46 -05:00
Shea cb98100dfd Merge branch 'dev' into resize-side-panels 2026-05-11 16:36:22 +03:00
Shea Duma ade9c7e5d9 seems resolved 2026-05-11 05:24:00 +03:00
7w1 f9ade5b986 add ability to cap preview size and minor adjustment to restore codeblock background of misc data 2026-05-09 16:42:07 -05:00
7w1 9d264ee5d3 Adjust new profile styling (#777)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Adjusts the styling of the new profile cards to match the styling seen
elsewhere & the old ones a little better. Old is left, new is right.
<img width="1404" height="1177" alt="image"
src="https://github.com/user-attachments/assets/f8184a63-8299-479e-acbb-0e21dcf887f2"
/>

<img width="1410" height="979" alt="image"
src="https://github.com/user-attachments/assets/6603e65c-16ea-4027-8fc6-2fc2b54d9b82"
/>


#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-05-09 15:26:07 -05:00
7w1 3d7c2bfde9 match spacing in all submenus 2026-05-09 15:20:28 -05:00
7w1 555fd3a46a style submenus 2026-05-09 15:14:24 -05:00
7w1 afa9f64cee Fix of wrong alignment with mixed RTL and LTR text (#743)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

This PR resolves formatting and alignment issues with mixed RTL
(Right-to-Left) and LTR (Left-to-Right) text within messages.
Previously, mixed text direction caused display inconsistencies in the
main message body and the reply content area.

**Changes made:**
* Added `dir="auto"` to the base message `Text` component, allowing the
browser to automatically determine the base text direction according to
the first strongly-typed character of the message.
* Applied `unicode-bidi: plaintext` to the message content CSS and the
`Text` component inside the reply content. This ensures the browser
dynamically evaluates and handles the text direction based on the actual
characters used rather than inheriting the container's direction.
* Set `align-self: start` on the message content. This ensures that even
for RTL messages, the content block anchors appropriately to the left
side (start) of the view, while still preserving the correct internal
text direction.

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- No AI was used in the creation of this code. -->
2026-05-09 19:40:12 +00:00
7w1 091d438694 lint 2026-05-08 15:19:23 -05:00
7w1 1bff268f23 adjust misc data box styles 2026-05-08 15:15:24 -05:00
7w1 ddbabda69e hide scrolls in misc data 2026-05-08 15:08:50 -05:00
7w1 f50a31900e change misc to clickable text instead of button effect 2026-05-08 15:06:08 -05:00
7w1 c38c779f7c only apply status hover when expandable 2026-05-08 14:56:10 -05:00
7w1 0be6177882 adjust status message styling 2026-05-08 14:53:04 -05:00
7w1 052fb1f82e remove borders replace with slight shadows 2026-05-08 14:45:03 -05:00
7w1 6d325c32fa similar style for all chips in general 2026-05-08 14:34:38 -05:00
7w1 4f7aee161a restore old chip style on default profile 2026-05-08 14:18:47 -05:00
7w1 a76f4518e7 add back the proper fallback to global avatar 2026-05-07 16:40:06 -05:00
7w1 cda61305ab typecheck fix 2026-05-07 14:50:41 -05:00
7w1 c86f8b6e8e unify the two read receipt boxes and fix the sizing inconsistency 2026-05-07 14:41:26 -05:00
7w1 bd4b2137b1 fix inline image height and add settings for capping incoming height 2026-05-07 12:48:58 -05:00
Shea Duma 2ed838a4e1 merged upstream 2026-05-07 16:35:18 +03:00
7w1 462fab41e7 Merge branch 'dev' into fix-markdown-escape-code-blocks 2026-05-06 20:44:05 -05:00
7w1 0996def084 merge dev 2026-05-06 20:28:17 -05:00
7w1 6f0470890f add toolbar to other places 2026-05-06 20:05:30 -05:00
7w1 336140008d add back toolbar 2026-05-06 19:48:23 -05:00
7w1 8cd927ae37 changeset and fix unrelated typo in pins text 2026-05-06 17:38:59 -05:00
7w1 b87af7ae09 fix tweak favoriting behavior 2026-05-06 11:04:06 -05:00
7w1 aa93278d6d fix empty messages 2026-05-05 17:27:50 -05:00
7w1 34fbfdacbe Refactor codebase and standardize unstable prefix usage (#746)
### Description

This pull request standardizes the usage of Matrix event content keys by
replacing hardcoded property names and older constants with centralized,
unstable prefix constants imported from the `$unstable/prefixes` module.
This change improves maintainability and consistency across the
codebase, especially in handling experimental or non-standard Matrix
properties.

The most important changes are as follows:

##### Prefix Standardization and Centralization 
Replaced all hardcoded Matrix property names and older constants (e.g.,
`'com.beeper.per_message_profile'`, `'com.beeper.linkpreviews'`, etc.)
with corresponding constants from the `$unstable/prefixes` module
throughout the codebase, including message rendering, room creation,
user profiles, and input handling.

##### Message Content Handling
Updated all logic for reading, writing, and deleting Matrix event
content properties (e.g., per-message profiles, link previews, image
source packs, spoilers, blur hashes, forward metadata) to use the new
prefix constants, ensuring consistent access and mutation of event
content.

##### User Profile and Room Metadata
Updated user profile extended keys (such as bio, banner, pronouns,
timezone, animal identity) in `UserRoomProfile.tsx` to use the new
prefix constants, replacing all previous hardcoded or legacy key
strings.

##### Room Creation and Calls
Changed the room call state event type to use the new unstable prefix
constant in room creation utilities.

##### Code Clean-up
Removed now-unused imports of old constants from files where they have
been replaced with the new prefix-based constants.

These changes collectively improve the code's future compatibility with
evolving Matrix specifications and make it easier to update property
names as they stabilize.

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

Shouldn't cause user facing changes

### Checklist:

- [ ] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

No AI usage
2026-05-05 15:25:53 -05:00
7w1 60c9db8c52 fix emoticon not properly converting when editing messages 2026-05-05 13:54:14 -05:00
Rye e6858778c2 refactor: standardize usage of unstable prefixes across components 2026-05-05 18:21:36 +02:00
Rye 8ecd3e80fb refactor(unstable prefixes): inital refactor to clean up the codebase 2026-05-05 16:47:02 +02:00
Shea Duma c52a07a46a fix some newly introduced linkpreview bugs 2026-05-05 16:42:08 +03:00
Sina Sadeghi 882515f0e2 Add dir auto for Base message Text 2026-05-05 14:09:09 +03:30
Sina Sadeghi 2cf66f33a9 fix rtl & ltr mixed message reply direction 2026-05-05 13:41:09 +03:30
Sina Sadeghi c623ca4fe0 fix rtl & ltr mixed message content direction 2026-05-05 13:40:59 +03:30
7w1 5369d9b0ec Minor dev only patches (#738)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fix some of the layout styling for consistency in the themes browsing
menus.
Fix bundled url previews for pmp messages.

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-05-05 00:25:56 -05:00
7w1 61f2b09def fix bundled urls with pmps 2026-05-05 00:18:40 -05:00
7w1 6122161f8a animate apngs and changeset fixes 2026-05-04 23:23:38 -05:00
7w1 e6a7746430 Error message for theme favoriting errors 2026-05-04 22:59:16 -05:00
7w1 c87630eb4c add export button and update changeset 2026-05-04 22:49:02 -05:00
7w1 af52a55aaa Improve theme loading disclaimers and chat preview setting options 2026-05-04 22:24:16 -05:00
7w1 e5bc629691 reverse theme source approval logic, empty is none 2026-05-04 21:58:51 -05:00
7w1 eeab65b121 Consolidate theme cards a little 2026-05-04 21:25:32 -05:00
7w1 e635e9d28b Remove the no preview tokens in this tweak text 2026-05-04 20:54:02 -05:00
7w1 1a6d6f4584 Merge branch 'dev' into feat/theme-edits-v2 2026-05-04 20:42:58 -05:00
7w1 7f62d389e8 replace setting with options to only render dark/light profiles 2026-05-04 20:37:28 -05:00