From 05bf79870a7accbdc8155662f5c9f3d97b7ba171 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 8 Apr 2023 10:47:41 +0800 Subject: [PATCH 001/122] Attempt to fix more vertical alignments --- src/components/name-text.css | 5 +++++ src/components/name-text.jsx | 2 +- src/components/status.css | 5 ----- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/name-text.css b/src/components/name-text.css index 1db35970..a9a4c2a7 100644 --- a/src/components/name-text.css +++ b/src/components/name-text.css @@ -1,6 +1,11 @@ .name-text { color: inherit; text-decoration: none; + display: inline-flex; + gap: 4px; + align-items: center; +} +.name-text.show-acct { display: inline-block; } a.name-text:is(:hover, :focus) b, diff --git a/src/components/name-text.jsx b/src/components/name-text.jsx index 36e8c198..3c563557 100644 --- a/src/components/name-text.jsx +++ b/src/components/name-text.jsx @@ -36,7 +36,7 @@ function NameText({ return ( * { vertical-align: middle; } From 1e34ce92f8e9fd20cb590a3de9829b5eaa90aba8 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 8 Apr 2023 13:18:15 +0800 Subject: [PATCH 002/122] Cloak mode --- src/app.jsx | 1 + src/cloak-mode.css | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/cloak-mode.css diff --git a/src/app.jsx b/src/app.jsx index 79dd9b04..96e0499f 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -1,5 +1,6 @@ import './app.css'; +// import './cloak-mode.css'; import { useEffect, useLayoutEffect, diff --git a/src/cloak-mode.css b/src/cloak-mode.css new file mode 100644 index 00000000..2d1e1505 --- /dev/null +++ b/src/cloak-mode.css @@ -0,0 +1,12 @@ +@import url('https://fonts.googleapis.com/css2?family=Flow+Circular&family=Noto+Emoji&display=swap'); + +.status-pre-meta, +.status .container { + font-family: 'Flow Circular', 'Noto Emoji', cursive; +} + +.status :is(img, video, audio), +.avatar { + filter: invert(0.5); + background-color: #000 !important; +} From 4f5709a55c4976563c7252add044c775f0847221 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 8 Apr 2023 16:52:04 +0800 Subject: [PATCH 003/122] yet another vertical alignment fix --- src/components/name-text.css | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/name-text.css b/src/components/name-text.css index a9a4c2a7..e8f88643 100644 --- a/src/components/name-text.css +++ b/src/components/name-text.css @@ -1,9 +1,7 @@ .name-text { color: inherit; text-decoration: none; - display: inline-flex; - gap: 4px; - align-items: center; + display: inline; } .name-text.show-acct { display: inline-block; @@ -20,4 +18,5 @@ a.name-text.short:is(:hover, :focus) i { .name-text .avatar { vertical-align: middle; + transform: translateY(-0.1em); } From b227d816bc4c52406e91a4adb113fc35d1e45981 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 8 Apr 2023 16:52:34 +0800 Subject: [PATCH 004/122] Show replies count for ancestors --- src/pages/status.jsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/pages/status.jsx b/src/pages/status.jsx index 922b25ff..fa53703c 100644 --- a/src/pages/status.jsx +++ b/src/pages/status.jsx @@ -185,6 +185,7 @@ function StatusPage() { id: s.id, ancestor: true, accountID: s.account.id, + repliesCount: s.repliesCount, })), { id, accountID: heroStatus.account.id }, ...nestedDescendants.map((s) => ({ @@ -627,6 +628,7 @@ function StatusPage() { descendant, thread, replies, + repliesCount, } = status; const isHero = statusID === id; return ( @@ -729,6 +731,14 @@ function StatusPage() { size={thread || ancestor ? 'm' : 's'} enableTranslate /> + {ancestor && !!repliesCount && ( + + )}{' '} {/* {replies?.length > LIMIT && (