From f5da383ef3741819abc4672a3c8d83ce13d92df4 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 15 Dec 2022 19:45:25 +0800 Subject: [PATCH 1/4] Sometimes external, sometimes not. --- src/components/name-text.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/name-text.jsx b/src/components/name-text.jsx index 1b8ab775..7891e96d 100644 --- a/src/components/name-text.jsx +++ b/src/components/name-text.jsx @@ -15,7 +15,7 @@ export default ({ account, showAvatar, showAcct, short, external }) => { { if (external) return; From 12c11c65c1d70349a3adea3f4ac36b943a0bde1f Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 15 Dec 2022 20:18:48 +0800 Subject: [PATCH 2/4] The title inside the card has weird line height --- src/components/status.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/status.css b/src/components/status.css index f1f15ef6..a7c1f914 100644 --- a/src/components/status.css +++ b/src/components/status.css @@ -331,6 +331,7 @@ min-width: 0; } .card .title { + line-height: 1.25; font-weight: normal; text-overflow: ellipsis; overflow: hidden; From 31b3d824cd3c4f5f33646c5bd3894267b9c30a89 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 15 Dec 2022 21:31:44 +0800 Subject: [PATCH 3/4] Center the items in toolbar --- src/components/compose.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/compose.css b/src/components/compose.css index 05efe1b6..2568747e 100644 --- a/src/components/compose.css +++ b/src/components/compose.css @@ -103,6 +103,7 @@ #compose-container .toolbar { display: flex; justify-content: space-between; + align-items: center; padding: 8px 0; gap: 8px; } From 45babb150bbdf5478080f9c780097c3b11d12243 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 15 Dec 2022 21:34:21 +0800 Subject: [PATCH 4/4] Try skip polling For large medias, API returns 202 Accepted and media is still processing https://docs.joinmastodon.org/methods/media/#v2 masto.js does extra manual poll check by GET-ing the media after uploaded to see if the media is done processing --- src/components/compose.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/compose.jsx b/src/components/compose.jsx index 5694477d..b926a98a 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -520,6 +520,7 @@ function Compose({ const params = { file, description, + skipPolling: true, }; return masto.mediaAttachments.create(params).then((res) => { if (res.id) {