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"
ref={contentRef}
data-read-more={_(readMoreText)}
inert={!!spoilerText && !showSpoiler ? true : undefined}
>
<PostContent
post={status}

100
src/locales/en.po generated
View file

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