Commit graph

45 commits

Author SHA1 Message Date
Paul
0571c065bd Remove remaining references to useUser(s).
Add Channel object.
2021-07-29 16:55:07 +01:00
Paul
f8611ddea5 Finish migrating user state over to MobX. 2021-07-29 15:51:19 +01:00
Paul
6d5fb0a8a3 Rename occurrences of monoscape to monospace. 2021-07-25 14:26:45 +01:00
Paul
6cf18b1b9b Fix message reply overflow.
Add opera icon to sessions.
2021-07-25 14:18:48 +01:00
Paul
93ee98717d Fix: Session icon alignment.
Fix: i18n blocked messages / users.
2021-07-10 18:06:21 +01:00
Paul
7586b365fe Format and automatically fix linted code. 2021-07-10 15:57:29 +01:00
Paul
392cb23541 Add spoilers back. 2021-07-10 15:55:21 +01:00
Paul
ef5944b065 Add more internal CSS variables. 2021-07-10 15:42:13 +01:00
Paul
9846262e8b Fix attachment scaling. 2021-07-10 15:21:35 +01:00
nizune
a2211d9fd7 Fix: Removed CSS file for Server Overview 2021-07-09 23:08:00 +02:00
nizune
4eb0461977 Updated replies 2021-07-09 21:56:09 +02:00
nizune
2141711d9e Fixed username in replies 2021-07-09 21:46:35 +02:00
bree
c1dc2b9a1d
Fix: image attachments not having minimum width 2021-07-09 11:09:55 -04:00
Paul
b806902bc4 Fix: Prevent clicking on links in reply / channel header.
Jump to existing message if exists.
2021-07-09 10:15:32 +01:00
Paul
3075fc8e32 Add links to message replies and load older messages. 2021-07-09 10:10:36 +01:00
bree
362e7452fe
Fix: attatchment sizing on chrome when unloaded 2021-07-08 18:17:59 -04:00
bree
eb7b915edb
Fix: max-width for other attachment types 2021-07-08 10:32:05 -04:00
bree
59a5d2e752
small fix for attachment width 2021-07-08 10:26:46 -04:00
bree
f0397f8af8
remove content jumping when loading image and video attachments 2021-07-08 10:22:42 -04:00
Paul
197ba53c60 Fix: Spoilers would not toggle.
Hook events into Markdown render using ref.
2021-07-07 12:45:55 +01:00
Paul
67d3fb35a4 Format code. 2021-07-06 19:29:27 +01:00
Paul
1fcf4df1ed Fix: System messages would break replies.
Fix: Show correct time format on left side of messages.
2021-07-06 19:29:09 +01:00
Paul
7b9766cb0b Fix: Use minHeight.
Temporary change: Prevent TextFile from loading large content.
Fixes #1: File preview failing with JSON files.
Add a way to open text files in new tab.
2021-07-06 14:58:54 +01:00
nizune
aebcf2875a Fixed sessions entries to work with RTL 2021-07-06 15:33:26 +02:00
Paul
b5a11d5c8f Use tabWidth 4 without actual tabs. 2021-07-05 11:25:20 +01:00
Paul
7bd33d8d34 Run prettier on all files. 2021-07-05 11:23:23 +01:00
insert
c4b9950514 Merge branch 'master' into 'cleanup'
# Conflicts:
#   src/components/common/LocaleSelector.tsx
2021-07-05 10:17:57 +00:00
bree
02bbf78dcd
Fix: attachment scaling and better image scaling
- attachment scaling now works for all forms of attachments
- switched to grid based action bar
- added onLoad class so image proportions are "trimmed" once the image has loaded to avoid moving the view around before loading
  - this may be possible to remove at some point
2021-07-05 04:32:05 -04:00
bree
e070f26bda
Update revolt.js to fix types 2021-07-04 21:09:24 -04:00
bree
3c2a85a3e4
Merge branch 'master' into cleanup 2021-07-04 21:06:30 -04:00
insert
fbad5aef92 Merge branch 'images' into 'master'
replace js image scaling with css for message attatchments

See merge request revolt/revite!3
2021-07-04 17:53:55 +00:00
Paul
1c80d5675f Feature: Font selector and ligature toggle. 2021-07-04 17:56:18 +01:00
bree
a4051330a3
remove most uses of as any in typescript
- replaced many uses of `as any` with another more specific cast `as T`
- filled in missing typed for items that needed to be typed
  - new runtime code was added where necessary to satisfy the new types with comments
- added missing theme variable "sidebar-active" to the Theme variables
- forms using `react-hook-form` are now typechecked
- changed some instances of `target` into `currentTarget` while removing `as any` assertions
2021-07-04 07:09:39 -04:00
bree
b4294359a1
Fix: Chrome support for css image scaling 2021-07-04 00:48:24 -04:00
bree
b821684733
image attachments now have their width and height properly set 2021-07-03 01:47:46 -04:00
bree
036e9a330a
replace js image scaling with css for message attachments 2021-07-02 22:40:53 -04:00
Paul
209653dfd7 Fix avatar direction. 2021-07-01 21:23:54 +01:00
Paul
4501a02b5d Migrate to @tippyjs/react from react-tippy.
Fix strokes on home sidebar.
Add tooltips on servers.
Fix reply SVG direction.
2021-06-27 21:54:31 +01:00
nizune
4102b69ca4 Update: Changed icon pack to Boxicons 2021-06-27 12:17:59 +02:00
Paul
41470e2cd5 Support replying to files, show icon in reply. 2021-06-26 09:45:07 +01:00
Paul
50bd6addb4 Add message reply UI. 2021-06-23 18:26:41 +01:00
Paul
22b21c030f Add animations to loaders. 2021-06-22 16:29:47 +01:00
Paul
602cca1047 Implement new auto-size text area.
Add bars + header + sidebar to channels.
2021-06-21 21:11:53 +01:00
Paul
3555e9a7bf Use null assertions instead of casting. 2021-06-21 09:02:38 +01:00
Paul
d1bff98635 Port attachments and embeds. 2021-06-20 22:09:18 +01:00