mattermost-mobile/app
Amit Uttam 66a6e5c932 [MM-10813] Design update for Post attachments (#3511)
* [MM-10813] Design update for Post attachments

Fixes https://github.com/mattermost/mattermost-server/issues/12841

* Updated visual treatment for Post attachments (images, documents, videos)
* Grouped image attachments, expanding to fit Post width dimension
* Itemized listing of non-image attachments
* Special handling of "small" image attachments (<48 point width/height)

* Set attachment post width to max width of portrait orientation

Accounts for post display offset and extra spacing used for rendering post replies.

* Use available Post real estate: flex: 1 instead of width 100%

* Image spacing responsibility: AttachmentList -> AttachmentImage

* Fit download progress circle correctly over new attachment icons

* Layers progress circle over the icon, rather than under.
* Uses offset constant as far as possible, rather than fixed point spaces.

* Refactor props and 'more' counting for image file attachment(s)

* Implement conditional gutter between image attachments

Flex's `justifyContent: space-between` won't work in this case because of the use of `absoluteFill` and `paddingBottom: 100%` in the box placeholder for an image attachment to auto-fill *all* available flex space.

* Additional snapshots for Post file attachment scenarios

* Use new 'text' icon for text files (.txt, .rtf)

Depends on https://github.com/mattermost/mattermost-redux/pull/979

Even without the change to mattermost-redux above, text files will default to pre-existing "code" icon.

* Set file attachment icon background to theme

Default to transparent. Override if explicitly specified.

* Treat animated GIFs as images when auto-adjusting attachment width

* Fix images layout, progressive image margins, and gallery for images and videos

* fix on iPad (splitview, permanent sidebar) card types and image sizes

* Add all files back to the gallery
2019-11-15 22:41:09 -05:00
..
actions MM-20149 Fix marking channels as read (#3549) 2019-11-13 13:38:20 -05:00
components [MM-10813] Design update for Post attachments (#3511) 2019-11-15 22:41:09 -05:00
constants [MM-10813] Design update for Post attachments (#3511) 2019-11-15 22:41:09 -05:00
i18n [MM-18779] Reset moment local on logout (#3310) 2019-09-25 16:02:58 +08:00
init [MM-16593] Upgrade to RN 0.61.2 (#3455) 2019-10-28 15:04:24 -07:00
mattermost_bucket iOS Native Share Extension (Swift) (#2575) 2019-02-26 14:31:57 -03:00
mattermost_managed MM-17589 Update "passcode required" help text (#3137) 2019-08-23 12:12:22 -04:00
notification_preferences add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
push_notifications [MM-19927] Fix launching app from push notification on iOS (#3527) 2019-11-07 14:47:52 -05:00
reducers Revert accidentally merged changes from mark-as-unread branch (#3405) 2019-10-11 09:28:09 -04:00
screens [MM-10813] Design update for Post attachments (#3511) 2019-11-15 22:41:09 -05:00
selectors MM-19731 Fix at-channel autocomplete to return out of channel mentions (#3477) 2019-10-29 22:22:28 -04:00
store [MM-19841] Keep currentTeamId and team theme preferences when resetting state (#3519) 2019-11-06 15:00:50 -07:00
styles MM-19696 Added font color for GlobalStyle Input (#3536) 2019-11-15 17:25:25 +08:00
telemetry [MM-17560] Await dismissAllModals and popToRoot prior to calling showSearchModal (#3298) 2019-09-25 15:23:45 -07:00
utils [MM-19968] Ensure SELECT_CHANNEL_WITH_MEMBER is dispatched when app opened from a push notification (#3533) 2019-11-12 17:45:11 -05:00
initial_state.js MM-19853 Fix iOS SafeAreaView for Server URL screen (#3513) 2019-11-04 14:59:23 -07:00
mattermost.js [MM-17560] Await dismissAllModals and popToRoot prior to calling showSearchModal (#3298) 2019-09-25 15:23:45 -07:00