Commit graph

18 commits

Author SHA1 Message Date
ThibG
2d5f0a0002 Fix some account media gallery items having empty labels ()
Remove the labels entirely for images instead of putting an empty label.
2020-11-01 18:31:39 +01:00
Eugen Rochko
ece8405ebd Fix audio and video items in account gallery in web UI ()
* Fix audio and video items in account gallery in web UI

- Fix audio items not using thumbnails
- Fix video items not using custom thumbnails
- Fix video items autoplaying like GIFs

* Change audio and video items in account gallery to autoplay when opened in web UI

* Fix code style issue
2020-07-10 22:09:28 +02:00
Sasha Sorokin
7418e0e613 Replace repetitive blurhash code with component ()
This commit replaces all unnecessarily repeated code for decoding and
embedding blurhash canvases with separate component - <Blurhash>.

Under the hood Blurhash component will use effect dependent on its
props. This gives a few benefits: it will only be re-rendered whenever
the hash or width/height/dummy props update, and will not render if
canvas won't get to the final DOM, because then effect won't fire,
which prevents weird bugs like .
2020-07-09 13:01:30 +02:00
BSKY
483cf4d52a Add noopener and/or noreferrer () 2019-10-24 22:44:42 +02:00
Eugen Rochko
9c4f1fb4e1 Fix audio attachments opening in video modal from media tab in web UI ()
Fix video attachments having a GIF label in media tab in web UI
2019-10-03 03:34:58 +02:00
ThibG
73b23ef7be Fix handling of audio files in account media gallery ()
Fixes 
2019-08-20 19:46:41 +02:00
Jeong Arm
3288f4a571 Bring back crossed eye icon on gallery () 2019-05-08 18:01:33 +02:00
ThibG
139ef769f7 Add description on hover in media gallery () 2019-05-06 05:33:56 +02:00
ThibG
d5357fcbf2 Minor account media gallery fixes ()
* Make the cursor icon consistant across media types in account media gallery

* Fix the video player modal causing scroll position to reset
2019-05-04 17:36:43 +02:00
Eugen Rochko
db73f8e585 Change account gallery in web UI ()
- 3 items per row instead of 2
- Use blurhash for previews
- Animate/hover-to-play GIFs and videos
- Open media modal instead of opening status
- Allow opening status instead with ctrl+click and open in new tab
2019-05-02 08:34:32 +02:00
Eugen Rochko
77dc5cc132 Refactor icons in web UI to use Icon component ()
* Refactor uses of icons to an Icon component in web UI

* Refactor options passed to the Icon component

* Make tests work with absolute component paths
2019-02-01 00:14:05 +01:00
ふぁぼ原
bb8afc4608 Add a new preference to always hide all media () 2018-09-25 05:09:35 +02:00
Eugen Rochko
aeca336e22 When enabled, always display media in gallery. Also: click to reveal ()
Fix 
2018-03-08 08:57:21 +01:00
Eugen Rochko
ca9d8402c3 Add "Toots/Toots with replies/Media" tab below profile header ()
* Add "Toots/Toots with replies/Media" tab below profile header

* Add focal point display to account gallery timeline

* Fix visual glitch of standalone GIFV
2018-03-01 02:48:44 +01:00
Yamagishi Kazutoshi
e2027fbe42 Use Class and Property Decorators ()
ref https://tc39.github.io/proposal-decorators/
2017-06-23 19:36:54 +02:00
Yamagishi Kazutoshi
d063663125 Improve ESLint rules for JSX ()
* Add react/no-string-refs ESLint rule

* Add react/jsx-boolean-value ESLint rule

* Add react/jsx-closing-bracket-location ESLint rule

* Add react/jsx-indent ESLint rule

* Add react/jsx-curly-spacing ESLint rule

* Add react/jsx-equals-spacing ESLint rule

* Add react/jsx-first-prop-new-line ESLint rule

* Add react/jsx-no-duplicate-props ESLint rule

* Add react/jsx-tag-spacing ESLint rule
2017-06-06 13:20:07 +02:00
Yamagishi Kazutoshi
e4ed0b155c Improve eslint rules ()
* Add semi to ESLint rules

* Add padded-blocks to ESLint rules

* Add comma-dangle to ESLint rules

* add config/webpack and storyboard

* add streaming/

* yarn test:lint -- --fix
2017-05-20 17:31:47 +02:00
Eugen Rochko
94b26e90fa Add account media gallery view to web UI ()
* Add account media gallery view to web UI

* Link media view from account dropdown

* Adjust link
2017-05-20 01:28:25 +02:00