Thibaut Girka
e03813cf0a
[Glitch] Stop gifv timeline preview explicitly when open the media gallery
Port cf3c0fc38c
to glitch-soc
5 years ago
Thibaut Girka
0d3612482e
Render placeholder instead of image when MediaGallery container width isn't known
6 years ago
Thibaut Girka
86527024aa
In detailed status view, take displayMedia setting into account when changing media
Fixes #819
6 years ago
Thibaut Girka
dfa5b0576f
Update mediaGallery component's width when opening CWs
6 years ago
Thibaut Girka
6ad7606909
[Glitch] Add support for new display_media setting
Port f7a6f9489d
to glitch-soc
[API] [vanilla required] [glitch-soc optional] initial_state show_sensitive_media boolean changed to show_media string with options "default", "hide_all", "show_all"
6 years ago
Thibaut Girka
925c185ef9
Prevent clicks on video from initiating selections
6 years ago
Thibaut Girka
8622dccaf1
Disable focus points for letterboxed media
6 years ago
Thibaut Girka
be644e3b7c
Media gallery styling closer to upstream's
6 years ago
Thibaut Girka
8183d2ed55
[Glitch] Do not override ctrl/cmd+click in media gallery
6 years ago
Thibaut Girka
937cd03a9a
[Glitch] Add missing video descriptions
Port ac092d03e7
to glitch-soc
6 years ago
Thibaut Girka
33c1607c83
[Glitch] Fix Chrome issue with sizes="0px"
6 years ago
Thibaut Girka
d0b2f71501
Fix width only being set for standalone media
6 years ago
Thibaut Girka
3ad3cee44c
[Glitch] Use real container width in MediaGallery srcSet
Port 22e067bf5c
to glitch-soc
6 years ago
Thibaut Girka
658ac4396c
Hide media in report modal regardless of whether they are marked sensitive
The rationale behind this is that if the user wants to report violent media,
they might not want to see it repeatedly. The “sensitive” property is still
kept, displaying different messages for hidden media depending on whether
they are marked as sensitive.
6 years ago
Thibaut Girka
7a68079b3f
[Glitch] Show media modal on public pages
Port ff7941e652
to glitch-soc
6 years ago
Thibaut Girka
779aa707ec
Only compute height dynamically for standalone media
This prevents changing the status' height and triggering jumps in the TL
6 years ago
Thibaut Girka
dcc1c10937
[Glitch] Center thumbnails on focus point
Port the display part of the following commits to glitch-soc:
* 90f12f2e5a
* b170627ceb
* 11697d6894
* 56eb5c3f34
6 years ago
Thibaut Girka
f1e25b672a
Use javascript to set MediaGallery height automatically
6 years ago
Thibaut Girka
a95f8271be
Revert some glitch-specific refactoring
In order to keep my sanity when porting changes between glitch-soc and upstream.
6 years ago
Thibaut Girka
c5dd4ed1d5
[Glitch] Fix media button type
Port ecdac9017e
to glitch-soc
6 years ago
Thibaut Girka
dfe8abb8cd
[Glitch] Handle preference to always display sensitive media
Port the UI part of 76f3d5d16b
to glitch-soc
6 years ago
kibigo!
60433d03f5
Add missing comma
6 years ago
kibigo!
5d2ef7a616
Show SENSITIVE tag on sensitive images ( #267 )
6 years ago
kibigo!
bc4fa6b198
Rename themes -> flavours ? ?
7 years ago
kibigo!
672ace5a20
Media styling
7 years ago
kibigo!
45c44989c8
Forking glitch theme
7 years ago
Nolan Lawson
3de22a82bf
Refactor initial state: reduce_motion and auto_play_gif ( #5501 )
7 years ago
Daggertooth
b110cc542f
Add image descriptions to title attribute to view on mouse hover/long-press. ( #5137 )
* Add image descriptions to `title` attribute to view on mouse hover/long-press.
* Too many title properties may spoil the broth.
7 years ago
Nolan Lawson
0060f98847
Remove react-sizeme ( #5143 )
* Remove react-sizeme
* Fix aspect ratio in "sensitive" mode
7 years ago
Eugen Rochko
4ec1771165
Add ability to specify alternative text for media attachments ( #5123 )
* Fix #117 - Add ability to specify alternative text for media attachments
- POST /api/v1/media accepts `description` straight away
- PUT /api/v1/media/:id to update `description` (only for unattached ones)
- Serialized as `name` of Document object in ActivityPub
- Uploads form adjusted for better performance and description input
* Add tests
* Change undo button blend mode to difference
7 years ago
Lynx Kotoura
259181c41a
Fix size of single media in media-gallery ( #5098 )
7 years ago
abcang
e756c4f5ec
Fix media spoiler of DetailedStatus ( #5071 )
7 years ago
Eugen Rochko
2f079573ed
In detail status view, display attachment uncropped if there's only one ( #5054 )
* In detail status view, display attachment uncropped if there's only one
* Make media spoiler the size of the media it hides, enable on static
7 years ago
Naoki Kosaka
cea5597722
Fix hasSize condition in secSet and sizes. ( #4969 )
7 years ago
Sorin Davidoi
e44f03bc71
Improve accessibility (part 7) ( #4457 )
* fix(media_modal): Keyboard navigation
* fix(column_back_button): Use native button
* fix(media_gallery): Keyboard navigation
* fix(status_content): Make CW content focusable
7 years ago
abcang
afa52e4d63
Fixed issue that the NSFW image is not hidden on detail page ( #4244 )
7 years ago
kibigo!
5770d461b2
Moved glitch containers and commented unused files
7 years ago
kibigo!
bcf7ee48e9
Importing vanillin from upstream ;) ;)
7 years ago
kibigo!
297921fce5
Moved glitch files to their own location ;)
7 years ago
Eugen Rochko
e19eefe219
Redesign the landing page, mount public timeline on it ( #4122 )
* Redesign the landing page, mount public timeline on it
* Adjust the standalone mounted component to the lacking of router
* Adjust auth layout pages to new design
* Fix tests
* Standalone public timeline polling every 5 seconds
* Remove now obsolete translations
* Add responsive design for new landing page
* Address reviews
* Add floating clouds behind frontpage form
* Use access token from public page when available
* Fix mentions and hashtags links, cursor on status content in standalone mode
* Add footer link to source code
* Fix errors on pages that don't embed the component, use classnames
* Fix tests
* Change anonymous autoPlayGif default to false
* When gif autoplay is disabled, hover to play
* Add option to hide the timeline preview
* Slightly improve alt layout
* Add elephant friend to new frontpage
* Display "back to mastodon" in place of "login" when logged in on frontpage
* Change polling time to 3s
7 years ago
Yamagishi Kazutoshi
852bda3d32
Use srcSet only when know width ( #4112 )
7 years ago
Ondřej Hruška
dc2b8bdecd
Added a toggle for full-width media previews
7 years ago
kibigo!
ec2daae71c
Media display improvements
- built in fullwidth styling
- letterbox settings toggle
- media no longer counts towards height when making toot-collapsing
measurements
7 years ago
Sorin Davidoi
be92babd00
Responsive images in media gallery ( #3963 )
* feat(components/media_gallery): Responsive images
* fix(components/media_gallery): Link to image URL
7 years ago
Yamagishi Kazutoshi
c1a8e3d1eb
Use Class and Property Decorators ( #3730 )
ref https://tc39.github.io/proposal-decorators/
7 years ago
Yamagishi Kazutoshi
eff9416469
Remove unused variables ( #3906 )
7 years ago
Yamagishi Kazutoshi
d8ae3efec3
Improve ESLint rules for JSX ( #3608 )
* 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
7 years ago
Yamagishi Kazutoshi
e969c78645
Disable ESLint rule jsx/anchor-has-content ( #3601 )
7 years ago
Yamagishi Kazutoshi
2e112e2406
Improve eslint rules ( #3147 )
* 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
7 years ago
Yamagishi Kazutoshi
b8b7b506a2
Replace inline styles with stylesheet ( #3115 )
7 years ago