]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix alignment of items in the account gallery in web UI and load more per...
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 3 May 2019 02:02:55 +0000 (04:02 +0200)
committerThibaut Girka <thib@sitedethib.com>
Sat, 4 May 2019 16:59:11 +0000 (18:59 +0200)
Port 967e419f8fa87af74f4bb530d7493c1dde02fca8 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/actions/timelines.js
app/javascript/flavours/glitch/styles/components/accounts.scss

index f218ee06b28086af00ffd65d86ea219a7c0b896b..cca57158335b9127347295e9663721c7d6c136ef 100644 (file)
@@ -97,7 +97,7 @@ export const expandCommunityTimeline       = ({ maxId, onlyMedia } = {}, done =
 export const expandDirectTimeline          = ({ maxId } = {}, done = noOp) => expandTimeline('direct', '/api/v1/timelines/direct', { max_id: maxId }, done);
 export const expandAccountTimeline         = (accountId, { maxId, withReplies } = {}) => expandTimeline(`account:${accountId}${withReplies ? ':with_replies' : ''}`, `/api/v1/accounts/${accountId}/statuses`, { exclude_replies: !withReplies, max_id: maxId });
 export const expandAccountFeaturedTimeline = accountId => expandTimeline(`account:${accountId}:pinned`, `/api/v1/accounts/${accountId}/statuses`, { pinned: true });
-export const expandAccountMediaTimeline    = (accountId, { maxId } = {}) => expandTimeline(`account:${accountId}:media`, `/api/v1/accounts/${accountId}/statuses`, { max_id: maxId, only_media: true });
+export const expandAccountMediaTimeline    = (accountId, { maxId } = {}) => expandTimeline(`account:${accountId}:media`, `/api/v1/accounts/${accountId}/statuses`, { max_id: maxId, only_media: true, limit: 40 });
 export const expandListTimeline            = (id, { maxId } = {}, done = noOp) => expandTimeline(`list:${id}`, `/api/v1/timelines/list/${id}`, { max_id: maxId }, done);
 
 export const expandHashtagTimeline       = (hashtag, { maxId, tags } = {}, done = noOp) => {
index f753b7efa8ea2c4be0ee857aef9880b471faf009..518eea5fa2b3ea2fe1528678e3ea98fcfb1aeb8c 100644 (file)
 .account-gallery__container {
   display: flex;
   flex-wrap: wrap;
-  justify-content: center;
   padding: 4px 2px;
 }