Commit c2bb683
authored
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 this31 files changed
Lines changed: 2482 additions & 1317 deletions
File tree
- .changeset
- src/app
- components
- page
- features
- room
- settings
- cosmetics
- general
- widgets
- hooks
- pages/client
- direct
- explore
- home
- inbox
- sidebar
- space
- state
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
| 110 | + | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | | - | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
12 | 39 | | |
13 | 40 | | |
14 | 41 | | |
| 42 | + | |
15 | 43 | | |
16 | 44 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
26 | 48 | | |
0 commit comments