Try inert on spoiler content

This commit is contained in:
Lim Chee Aun 2024-10-18 17:23:09 +08:00
parent 8d98ccff83
commit e1784b9c00
2 changed files with 51 additions and 50 deletions

View file

@ -2079,6 +2079,7 @@ function Status({
class="content" class="content"
ref={contentRef} ref={contentRef}
data-read-more={_(readMoreText)} data-read-more={_(readMoreText)}
inert={!!spoilerText && !showSpoiler ? true : undefined}
> >
<PostContent <PostContent
post={status} post={status}

100
src/locales/en.po generated
View file

@ -111,8 +111,8 @@ msgstr ""
#: src/components/status.jsx:1721 #: src/components/status.jsx:1721
#: src/components/status.jsx:1738 #: src/components/status.jsx:1738
#: src/components/status.jsx:1862 #: src/components/status.jsx:1862
#: src/components/status.jsx:2459 #: src/components/status.jsx:2460
#: src/components/status.jsx:2462 #: src/components/status.jsx:2463
#: src/pages/account-statuses.jsx:528 #: src/pages/account-statuses.jsx:528
#: src/pages/accounts.jsx:109 #: src/pages/accounts.jsx:109
#: src/pages/hashtag.jsx:199 #: src/pages/hashtag.jsx:199
@ -181,7 +181,7 @@ msgid "Original"
msgstr "" msgstr ""
#: src/components/account-info.jsx:862 #: src/components/account-info.jsx:862
#: src/components/status.jsx:2250 #: src/components/status.jsx:2251
#: src/pages/catchup.jsx:71 #: src/pages/catchup.jsx:71
#: src/pages/catchup.jsx:1445 #: src/pages/catchup.jsx:1445
#: src/pages/catchup.jsx:2056 #: src/pages/catchup.jsx:2056
@ -289,7 +289,7 @@ msgstr ""
#: src/components/account-info.jsx:1311 #: src/components/account-info.jsx:1311
#: src/components/shortcuts-settings.jsx:1059 #: src/components/shortcuts-settings.jsx:1059
#: src/components/status.jsx:1170 #: src/components/status.jsx:1170
#: src/components/status.jsx:3236 #: src/components/status.jsx:3237
msgid "Copy" msgid "Copy"
msgstr "" msgstr ""
@ -417,9 +417,9 @@ msgstr ""
#: src/components/shortcuts-settings.jsx:230 #: src/components/shortcuts-settings.jsx:230
#: src/components/shortcuts-settings.jsx:583 #: src/components/shortcuts-settings.jsx:583
#: src/components/shortcuts-settings.jsx:783 #: src/components/shortcuts-settings.jsx:783
#: src/components/status.jsx:2961 #: src/components/status.jsx:2962
#: src/components/status.jsx:3200 #: src/components/status.jsx:3201
#: src/components/status.jsx:3698 #: src/components/status.jsx:3699
#: src/pages/accounts.jsx:36 #: src/pages/accounts.jsx:36
#: src/pages/catchup.jsx:1581 #: src/pages/catchup.jsx:1581
#: src/pages/filters.jsx:224 #: src/pages/filters.jsx:224
@ -678,7 +678,7 @@ msgstr ""
#: src/components/status.jsx:913 #: src/components/status.jsx:913
#: src/components/status.jsx:1701 #: src/components/status.jsx:1701
#: src/components/status.jsx:1702 #: src/components/status.jsx:1702
#: src/components/status.jsx:2355 #: src/components/status.jsx:2356
msgid "Reply" msgid "Reply"
msgstr "" msgstr ""
@ -1094,9 +1094,9 @@ msgstr ""
#: src/components/keyboard-shortcuts-help.jsx:164 #: src/components/keyboard-shortcuts-help.jsx:164
#: src/components/status.jsx:921 #: src/components/status.jsx:921
#: src/components/status.jsx:2381 #: src/components/status.jsx:2382
#: src/components/status.jsx:2413
#: src/components/status.jsx:2414 #: src/components/status.jsx:2414
#: src/components/status.jsx:2415
msgid "Boost" msgid "Boost"
msgstr "" msgstr ""
@ -1106,8 +1106,8 @@ msgstr ""
#: src/components/keyboard-shortcuts-help.jsx:172 #: src/components/keyboard-shortcuts-help.jsx:172
#: src/components/status.jsx:1006 #: src/components/status.jsx:1006
#: src/components/status.jsx:2438
#: src/components/status.jsx:2439 #: src/components/status.jsx:2439
#: src/components/status.jsx:2440
msgid "Bookmark" msgid "Bookmark"
msgstr "" msgstr ""
@ -1211,9 +1211,9 @@ msgid "Filtered: {filterTitleStr}"
msgstr "" msgstr ""
#: src/components/media-post.jsx:133 #: src/components/media-post.jsx:133
#: src/components/status.jsx:3528 #: src/components/status.jsx:3529
#: src/components/status.jsx:3624 #: src/components/status.jsx:3625
#: src/components/status.jsx:3702 #: src/components/status.jsx:3703
#: src/components/timeline.jsx:973 #: src/components/timeline.jsx:973
#: src/pages/catchup.jsx:75 #: src/pages/catchup.jsx:75
#: src/pages/catchup.jsx:1876 #: src/pages/catchup.jsx:1876
@ -2041,18 +2041,18 @@ msgstr ""
#: src/components/status.jsx:921 #: src/components/status.jsx:921
#: src/components/status.jsx:983 #: src/components/status.jsx:983
#: src/components/status.jsx:2381 #: src/components/status.jsx:2382
#: src/components/status.jsx:2413 #: src/components/status.jsx:2414
msgid "Unboost" msgid "Unboost"
msgstr "" msgstr ""
#: src/components/status.jsx:937 #: src/components/status.jsx:937
#: src/components/status.jsx:2396 #: src/components/status.jsx:2397
msgid "Quote" msgid "Quote"
msgstr "" msgstr ""
#: src/components/status.jsx:945 #: src/components/status.jsx:945
#: src/components/status.jsx:2405 #: src/components/status.jsx:2406
msgid "Some media have no descriptions." msgid "Some media have no descriptions."
msgstr "" msgstr ""
@ -2076,20 +2076,20 @@ msgstr ""
#: src/components/status.jsx:996 #: src/components/status.jsx:996
#: src/components/status.jsx:1711 #: src/components/status.jsx:1711
#: src/components/status.jsx:2426 #: src/components/status.jsx:2427
msgid "Unlike" msgid "Unlike"
msgstr "" msgstr ""
#: src/components/status.jsx:997 #: src/components/status.jsx:997
#: src/components/status.jsx:1711 #: src/components/status.jsx:1711
#: src/components/status.jsx:1712 #: src/components/status.jsx:1712
#: src/components/status.jsx:2426
#: src/components/status.jsx:2427 #: src/components/status.jsx:2427
#: src/components/status.jsx:2428
msgid "Like" msgid "Like"
msgstr "" msgstr ""
#: src/components/status.jsx:1006 #: src/components/status.jsx:1006
#: src/components/status.jsx:2438 #: src/components/status.jsx:2439
msgid "Unbookmark" msgid "Unbookmark"
msgstr "" msgstr ""
@ -2106,7 +2106,7 @@ msgid "Edited: {editedDateText}"
msgstr "" msgstr ""
#: src/components/status.jsx:1205 #: src/components/status.jsx:1205
#: src/components/status.jsx:3205 #: src/components/status.jsx:3206
msgid "Embed post" msgid "Embed post"
msgstr "" msgstr ""
@ -2176,17 +2176,17 @@ msgstr ""
#: src/components/status.jsx:1712 #: src/components/status.jsx:1712
#: src/components/status.jsx:1748 #: src/components/status.jsx:1748
#: src/components/status.jsx:2427 #: src/components/status.jsx:2428
msgid "Liked" msgid "Liked"
msgstr "" msgstr ""
#: src/components/status.jsx:1745 #: src/components/status.jsx:1745
#: src/components/status.jsx:2414 #: src/components/status.jsx:2415
msgid "Boosted" msgid "Boosted"
msgstr "" msgstr ""
#: src/components/status.jsx:1755 #: src/components/status.jsx:1755
#: src/components/status.jsx:2439 #: src/components/status.jsx:2440
msgid "Bookmarked" msgid "Bookmarked"
msgstr "" msgstr ""
@ -2195,7 +2195,7 @@ msgid "Pinned"
msgstr "" msgstr ""
#: src/components/status.jsx:1804 #: src/components/status.jsx:1804
#: src/components/status.jsx:2258 #: src/components/status.jsx:2259
msgid "Deleted" msgid "Deleted"
msgstr "" msgstr ""
@ -2209,7 +2209,7 @@ msgstr ""
#: src/components/status.jsx:2010 #: src/components/status.jsx:2010
#: src/components/status.jsx:2072 #: src/components/status.jsx:2072
#: src/components/status.jsx:2156 #: src/components/status.jsx:2157
msgid "Show less" msgid "Show less"
msgstr "" msgstr ""
@ -2218,94 +2218,94 @@ msgstr ""
msgid "Show content" msgid "Show content"
msgstr "" msgstr ""
#: src/components/status.jsx:2156 #: src/components/status.jsx:2157
msgid "Show media" msgid "Show media"
msgstr "" msgstr ""
#: src/components/status.jsx:2279 #: src/components/status.jsx:2280
msgid "Edited" msgid "Edited"
msgstr "" msgstr ""
#: src/components/status.jsx:2356 #: src/components/status.jsx:2357
msgid "Comments" msgid "Comments"
msgstr "" msgstr ""
#. More from [Author] #. More from [Author]
#: src/components/status.jsx:2665 #: src/components/status.jsx:2666
msgid "More from <0/>" msgid "More from <0/>"
msgstr "More from <0/>" msgstr "More from <0/>"
#: src/components/status.jsx:2966 #: src/components/status.jsx:2967
msgid "Edit History" msgid "Edit History"
msgstr "" msgstr ""
#: src/components/status.jsx:2970 #: src/components/status.jsx:2971
msgid "Failed to load history" msgid "Failed to load history"
msgstr "" msgstr ""
#: src/components/status.jsx:2975 #: src/components/status.jsx:2976
msgid "Loading…" msgid "Loading…"
msgstr "" msgstr ""
#: src/components/status.jsx:3210 #: src/components/status.jsx:3211
msgid "HTML Code" msgid "HTML Code"
msgstr "" msgstr ""
#: src/components/status.jsx:3227 #: src/components/status.jsx:3228
msgid "HTML code copied" msgid "HTML code copied"
msgstr "" msgstr ""
#: src/components/status.jsx:3230 #: src/components/status.jsx:3231
msgid "Unable to copy HTML code" msgid "Unable to copy HTML code"
msgstr "" msgstr ""
#: src/components/status.jsx:3242 #: src/components/status.jsx:3243
msgid "Media attachments:" msgid "Media attachments:"
msgstr "" msgstr ""
#: src/components/status.jsx:3264 #: src/components/status.jsx:3265
msgid "Account Emojis:" msgid "Account Emojis:"
msgstr "" msgstr ""
#: src/components/status.jsx:3295 #: src/components/status.jsx:3296
#: src/components/status.jsx:3340 #: src/components/status.jsx:3341
msgid "static URL" msgid "static URL"
msgstr "" msgstr ""
#: src/components/status.jsx:3309 #: src/components/status.jsx:3310
msgid "Emojis:" msgid "Emojis:"
msgstr "" msgstr ""
#: src/components/status.jsx:3354 #: src/components/status.jsx:3355
msgid "Notes:" msgid "Notes:"
msgstr "" msgstr ""
#: src/components/status.jsx:3358 #: src/components/status.jsx:3359
msgid "This is static, unstyled and scriptless. You may need to apply your own styles and edit as needed." msgid "This is static, unstyled and scriptless. You may need to apply your own styles and edit as needed."
msgstr "" msgstr ""
#: src/components/status.jsx:3364 #: src/components/status.jsx:3365
msgid "Polls are not interactive, becomes a list with vote counts." msgid "Polls are not interactive, becomes a list with vote counts."
msgstr "" msgstr ""
#: src/components/status.jsx:3369 #: src/components/status.jsx:3370
msgid "Media attachments can be images, videos, audios or any file types." msgid "Media attachments can be images, videos, audios or any file types."
msgstr "" msgstr ""
#: src/components/status.jsx:3375 #: src/components/status.jsx:3376
msgid "Post could be edited or deleted later." msgid "Post could be edited or deleted later."
msgstr "" msgstr ""
#: src/components/status.jsx:3381 #: src/components/status.jsx:3382
msgid "Preview" msgid "Preview"
msgstr "" msgstr ""
#: src/components/status.jsx:3390 #: src/components/status.jsx:3391
msgid "Note: This preview is lightly styled." msgid "Note: This preview is lightly styled."
msgstr "" msgstr ""
#. [Name] [Visibility icon] boosted #. [Name] [Visibility icon] boosted
#: src/components/status.jsx:3632 #: src/components/status.jsx:3633
msgid "<0/> <1/> boosted" msgid "<0/> <1/> boosted"
msgstr "" msgstr ""