From 1bb547e1a3a5762e2334fd55388501e7d8557390 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 27 Dec 2022 11:00:05 +0800 Subject: [PATCH 1/4] Use box-shadow, border skews the actual dimension --- src/components/avatar.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/avatar.css b/src/components/avatar.css index 6e20f67d..72859e51 100644 --- a/src/components/avatar.css +++ b/src/components/avatar.css @@ -5,7 +5,7 @@ border-radius: 50%; overflow: hidden; background-color: var(--bg-faded-color); - border: 1px solid var(--outline-color); + box-shadow: 0 0 0 1px var(--bg-blur-color); flex-shrink: 0; } @@ -14,4 +14,4 @@ height: 100%; object-fit: cover; background-color: var(--img-bg-color); -} \ No newline at end of file +} From 43e0f51bcf35249f71a56c263813820d8177762e Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 27 Dec 2022 17:54:48 +0800 Subject: [PATCH 2/4] Add bot indicator --- src/app.css | 3 +++ src/components/account.jsx | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/src/app.css b/src/app.css index ea69303e..18ab5474 100644 --- a/src/app.css +++ b/src/app.css @@ -635,6 +635,9 @@ button.carousel-dot[disabled].active { margin: 4px; align-self: center; } +.tag .icon { + vertical-align: middle; +} /* MENU POPUP */ diff --git a/src/components/account.jsx b/src/components/account.jsx index 6750eea4..cd36f994 100644 --- a/src/components/account.jsx +++ b/src/components/account.jsx @@ -129,6 +129,13 @@ function Account({ account }) {
+ {bot && ( + <> + + Automated + + + )}
Date: Tue, 27 Dec 2022 18:09:23 +0800 Subject: [PATCH 3/4] Experimental language selector in Compose field --- scripts/fetch-supported-languages.js | 20 + src/components/compose.css | 9 + src/components/compose.jsx | 50 +- src/components/icon.jsx | 1 + src/components/status.jsx | 4 +- src/data/status-supported-languages.json | 967 +++++++++++++++++++++++ 6 files changed, 1048 insertions(+), 3 deletions(-) create mode 100644 scripts/fetch-supported-languages.js create mode 100644 src/data/status-supported-languages.json diff --git a/scripts/fetch-supported-languages.js b/scripts/fetch-supported-languages.js new file mode 100644 index 00000000..1af2e664 --- /dev/null +++ b/scripts/fetch-supported-languages.js @@ -0,0 +1,20 @@ +import fs from 'fs'; + +const url = 'https://mastodon.social/'; + +const html = await fetch(url).then((res) => res.text()); + +// Extract the JSON between +const json = html.match( + /