From 5fd5305de6bf98fdd807e172856d443db85888c0 Mon Sep 17 00:00:00 2001 From: Benjamin Piouffle Date: Mon, 3 Mar 2025 22:57:55 +0100 Subject: [PATCH] misc style enhancements --- .github/workflows/e2e.yml | 2 +- app/components/Comments/Source.jsx | 10 ++++---- app/components/Comments/Vote.tsx | 2 +- .../Statements/StatementComments.jsx | 24 ++++++++++++------- app/components/Users/UserPicture.tsx | 1 + 5 files changed, 25 insertions(+), 14 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 02bc74eb3..72e6b8a8c 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -40,7 +40,7 @@ jobs: ${{ runner.os }}-mix-${{ env.cache-name }}- ${{ runner.os }}-mix- - name: Restore Elixir build folder - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ./api/build key: ${{ runner.os }}-mix-${{ env.cache-name }}-${{ hashFiles('**/mix.lock') }} diff --git a/app/components/Comments/Source.jsx b/app/components/Comments/Source.jsx index cfccd2ccc..59d0d5c1e 100644 --- a/app/components/Comments/Source.jsx +++ b/app/components/Comments/Source.jsx @@ -49,11 +49,13 @@ export const Source = ({ source: { url, title, site_name }, withoutPlayer }) => return ( -
- - {site_name ? site_name.toUpperCase() : getDisplayableHostname(url)} +
+ + + {site_name ? site_name.toUpperCase() : getDisplayableHostname(url)} +
{title} diff --git a/app/components/Comments/Vote.tsx b/app/components/Comments/Vote.tsx index 5bfe5d350..7a00118ce 100644 --- a/app/components/Comments/Vote.tsx +++ b/app/components/Comments/Vote.tsx @@ -10,7 +10,7 @@ import Spinner from '../ui/spinner' const Score = ({ isVoting, isReported, score }) => { return ( - + {isVoting ? : isReported ? : {score}} ) diff --git a/app/components/Statements/StatementComments.jsx b/app/components/Statements/StatementComments.jsx index cfca2d47b..f9f9ca3c4 100644 --- a/app/components/Statements/StatementComments.jsx +++ b/app/components/Statements/StatementComments.jsx @@ -4,6 +4,7 @@ import { withTranslation } from 'react-i18next' import { connect } from 'react-redux' import { Badge } from '@/components/ui/badge' +import { cn } from '@/lib/css-utils' import { classifyComments } from '../../state/video_debate/comments/selectors' import { CommentsList } from '../Comments/CommentsList' @@ -43,7 +44,7 @@ export default class StatementComments extends React.PureComponent { const hasSpeakerComments = speakerComments.size > 0 return !hasCommunityComments ? null : ( - +
{hasSpeakerComments && (
@@ -53,16 +54,16 @@ export default class StatementComments extends React.PureComponent { {hasSourcedComments && this.renderSourcedComments()} {hasRegularComments && this.renderRegularComments()} - +
) } renderSourcedComments() { const { approvingFacts, refutingFacts, setReplyToComment } = this.props return ( -
+
+
+ +
+
- +
{this.props.t(label)} {score !== null && ( @@ -115,7 +123,7 @@ export default class StatementComments extends React.PureComponent { )}
- +
) } diff --git a/app/components/Users/UserPicture.tsx b/app/components/Users/UserPicture.tsx index 1d819be4f..984465bf0 100644 --- a/app/components/Users/UserPicture.tsx +++ b/app/components/Users/UserPicture.tsx @@ -32,6 +32,7 @@ const UserPicture = ({