From d8963d9bfe34a6dbd630cbf2b4e9dc0d41993ce9 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Sun, 25 Jun 2023 12:09:53 -0400 Subject: [PATCH 1/6] Add margin to new comment text --- src/shared/components/post/post-listing.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 092e253..20be5b2 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -741,7 +741,7 @@ export class PostListing extends Component { {post_view.counts.comments} {this.unreadCount && ( - + ({this.unreadCount} {I18NextService.i18n.t("new")}) )} From 6a69d6b06385b932d4f8a0a8b67de6ad3d4bedae Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Sun, 25 Jun 2023 13:28:00 -0400 Subject: [PATCH 2/6] Use spae instead of margin --- src/shared/components/post/post-listing.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 20be5b2..e43590e 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -741,9 +741,12 @@ export class PostListing extends Component { {post_view.counts.comments} {this.unreadCount && ( - - ({this.unreadCount} {I18NextService.i18n.t("new")}) - + <> + {" "} + + ({this.unreadCount} {I18NextService.i18n.t("new")}) + + )} ); From 434502c6785c1651a2e3d631dbde7f7833db8d22 Mon Sep 17 00:00:00 2001 From: Dominic Mazzoni Date: Sun, 25 Jun 2023 12:12:32 -0700 Subject: [PATCH 3/6] CSP should allow data urls for media-src or the audio captcha won't work --- src/server/middleware/set-default-csp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/middleware/set-default-csp.ts b/src/server/middleware/set-default-csp.ts index a3ee526..fd776ab 100644 --- a/src/server/middleware/set-default-csp.ts +++ b/src/server/middleware/set-default-csp.ts @@ -3,7 +3,7 @@ import type { NextFunction, Response } from "express"; export default function ({ res, next }: { res: Response; next: NextFunction }) { res.setHeader( "Content-Security-Policy", - `default-src 'self'; manifest-src *; connect-src *; img-src * data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; form-action 'self'; base-uri 'self'; frame-src *; media-src *` + `default-src 'self'; manifest-src *; connect-src *; img-src * data:; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; form-action 'self'; base-uri 'self'; frame-src *; media-src * data:` ); next(); From 353d4c7e39dd386eb902c6b3cc656f67b27ec793 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Sun, 25 Jun 2023 15:13:27 -0400 Subject: [PATCH 4/6] Update post-listing.tsx Removed unnecessary bootstrap class --- src/shared/components/post/post-listing.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index e43590e..76a3e44 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -743,7 +743,7 @@ export class PostListing extends Component { {this.unreadCount && ( <> {" "} - + ({this.unreadCount} {I18NextService.i18n.t("new")}) From 937dd5f86a897a7f09bf81f04adc5f10a804c1ae Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Sun, 25 Jun 2023 17:18:25 -0400 Subject: [PATCH 5/6] feat(UI): Fix some link hover colors --- src/assets/css/main.css | 2 +- src/shared/components/post/post-listing.tsx | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/assets/css/main.css b/src/assets/css/main.css index cb4a8b8..b917b3e 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -84,7 +84,7 @@ margin-top: -6.5px; } -.post-title a:visited { +.post-title a:visited:not(:hover) { color: var(--bs-gray) !important; } diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 76a3e44..ac90b0d 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -397,7 +397,7 @@ export class PostListing extends Component { const post_view = this.postView; return ( - + {this.creatorIsMod_ && ( {I18NextService.i18n.t("mod")} @@ -444,8 +444,8 @@ export class PostListing extends Component { { { const url = post.url; return ( -

+

{url && !(hostname(url) === getExternalHost()) && ( Date: Sun, 25 Jun 2023 21:11:23 -0700 Subject: [PATCH 6/6] Associate NSFW label with its checkbox --- src/shared/components/post/post-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/post/post-form.tsx b/src/shared/components/post/post-form.tsx index 081792a..84ea77a 100644 --- a/src/shared/components/post/post-form.tsx +++ b/src/shared/components/post/post-form.tsx @@ -531,7 +531,7 @@ export class PostForm extends Component { checked={this.state.form.nsfw} onChange={linkEvent(this, handlePostNsfwChange)} /> -