Commit Graph
16 Commits
Author SHA1 Message Date
bree f0397f8af8 remove content jumping when loading image and video attachments 2021-07-08 10:22:42 -04:00
bree d829deba98 Fix: Image embeds were unable to be opened into the image view
- Image embeds actions now use a better styling that's the same as the other action stylings
2021-07-06 03:56:04 -04:00
bree 002d565b3f Improve ImageViewer styles 2021-07-06 03:03:05 -04: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 9deeea3884 Hide --sidebar-active and keep it internal 2021-07-04 21:24:16 -04:00
bree c194fff7fd Resolve remaining review notes 2021-07-04 21:22:33 -04:00
bree 8ece647857 Replace usage of <></> with null for project and style consistency 2021-07-04 21:13:53 -04:00
bree e03449b75c Fix merge conflict missed from before 2021-07-04 21:11:23 -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
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
bree ee5e558e9f fix long width image previews to fit into view 2021-07-02 22:37:45 -04:00
bree 46155a65dd Restructure FilePreview to be less "hacky" 2021-06-23 13:46:31 -04:00