From d79b4b814f7dfee07889d5a8fb948a3c9df20020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Wed, 29 Oct 2025 14:40:46 +0100 Subject: [PATCH] pl-fe: style migrations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/components/account.tsx | 35 +++++------ .../src/components/polls/poll-footer.tsx | 8 +-- .../src/components/status-language-picker.tsx | 2 +- packages/pl-fe/src/components/status.tsx | 2 +- .../status/components/detailed-status.tsx | 62 ++++++++++--------- .../status/components/status-type-icon.tsx | 2 +- packages/pl-fe/src/styles/new/accounts.scss | 14 +++++ packages/pl-fe/src/styles/new/layout.scss | 6 ++ 8 files changed, 73 insertions(+), 58 deletions(-) diff --git a/packages/pl-fe/src/components/account.tsx b/packages/pl-fe/src/components/account.tsx index 4e4942d4f..767f6e749 100644 --- a/packages/pl-fe/src/components/account.tsx +++ b/packages/pl-fe/src/components/account.tsx @@ -1,3 +1,4 @@ +import clsx from 'clsx'; import React, { useLayoutEffect, useRef, useState } from 'react'; import { defineMessages, useIntl, FormattedMessage } from 'react-intl'; import { Link, useHistory } from 'react-router-dom'; @@ -222,8 +223,8 @@ const Account = ({ } : {}; if (disabled) return ( -
- +
+
{disableUserProvidedMedia ? ( @@ -242,11 +243,7 @@ const Account = ({
- + @@ -268,7 +265,7 @@ const Account = ({ /> {account.favicon && !disableUserProvidedMedia && ( - · + )} )} @@ -286,13 +283,13 @@ const Account = ({
{renderAction()}
-
+
); return ( -
- +
+
{withAvatar && (disableUserProvidedMedia ? ( @@ -321,11 +318,7 @@ const Account = ({ > - + @@ -348,7 +341,7 @@ const Account = ({ className='size-4 text-gray-600' /> {account.favicon && !disableUserProvidedMedia && ( - · + )} )} @@ -359,7 +352,7 @@ const Account = ({ {(timestamp) ? ( <> - · + {timestampUrl ? ( event.stopPropagation()}> @@ -373,7 +366,7 @@ const Account = ({ {approvalStatus && ['pending', 'rejected'].includes(approvalStatus) && ( <> - · + {approvalStatus === 'pending' @@ -385,7 +378,7 @@ const Account = ({ {actionType === 'muting' && muteExpiresAt ? ( <> - · + @@ -417,7 +410,7 @@ const Account = ({
{renderAction()}
-
+
); }; diff --git a/packages/pl-fe/src/components/polls/poll-footer.tsx b/packages/pl-fe/src/components/polls/poll-footer.tsx index 797b4351c..93db9dc7e 100644 --- a/packages/pl-fe/src/components/polls/poll-footer.tsx +++ b/packages/pl-fe/src/components/polls/poll-footer.tsx @@ -73,7 +73,7 @@ const PollFooter: React.FC = ({ poll, showResults, selected, status - · + )} @@ -85,7 +85,7 @@ const PollFooter: React.FC = ({ poll, showResults, selected, status - · + )} @@ -101,7 +101,7 @@ const PollFooter: React.FC = ({ poll, showResults, selected, status - · + )} @@ -111,7 +111,7 @@ const PollFooter: React.FC = ({ poll, showResults, selected, status {poll.expires_at !== null && ( <> - · + {timeRemaining} )} diff --git a/packages/pl-fe/src/components/status-language-picker.tsx b/packages/pl-fe/src/components/status-language-picker.tsx index 806a74213..b6bbcde48 100644 --- a/packages/pl-fe/src/components/status-language-picker.tsx +++ b/packages/pl-fe/src/components/status-language-picker.tsx @@ -32,7 +32,7 @@ const StatusLanguagePicker: React.FC = React.memo(({ stat return ( <> - · + ({ diff --git a/packages/pl-fe/src/components/status.tsx b/packages/pl-fe/src/components/status.tsx index b548d89a8..727096bb9 100644 --- a/packages/pl-fe/src/components/status.tsx +++ b/packages/pl-fe/src/components/status.tsx @@ -396,7 +396,7 @@ const Status: React.FC = (props) => { {!!actualStatus.edited_at && ( <> - · + diff --git a/packages/pl-fe/src/features/status/components/detailed-status.tsx b/packages/pl-fe/src/features/status/components/detailed-status.tsx index 4125581da..d86f180fe 100644 --- a/packages/pl-fe/src/features/status/components/detailed-status.tsx +++ b/packages/pl-fe/src/features/status/components/detailed-status.tsx @@ -119,38 +119,40 @@ const DetailedStatus: React.FC = ({ - - - + + + + - {actualStatus.application && ( - <> - {' · '} - - {actualStatus.application.name} - - - )} + {actualStatus.application && ( + <> + + + {actualStatus.application.name} + + + )} - {actualStatus.edited_at && ( - <> - {' · '} -
- -
- - )} + {actualStatus.edited_at && ( + <> + +
+ +
+ + )} +
diff --git a/packages/pl-fe/src/features/status/components/status-type-icon.tsx b/packages/pl-fe/src/features/status/components/status-type-icon.tsx index 68865df47..a74689d32 100644 --- a/packages/pl-fe/src/features/status/components/status-type-icon.tsx +++ b/packages/pl-fe/src/features/status/components/status-type-icon.tsx @@ -39,7 +39,7 @@ const StatusTypeIcon: React.FC = React.memo(({ visibility }) => return ( <> - · + diff --git a/packages/pl-fe/src/styles/new/accounts.scss b/packages/pl-fe/src/styles/new/accounts.scss index 55ffbc49d..74ff97dfe 100644 --- a/packages/pl-fe/src/styles/new/accounts.scss +++ b/packages/pl-fe/src/styles/new/accounts.scss @@ -1,3 +1,17 @@ +.⁂-account-card { + @apply block w-full shrink-0; + + > div { + @apply flex gap-3 justify-between items-center; + } + + &--action-top { + > div { + @apply items-start; + } + } +} + .⁂-avatar { @apply rounded-lg leading-[0]; diff --git a/packages/pl-fe/src/styles/new/layout.scss b/packages/pl-fe/src/styles/new/layout.scss index 4c47f964a..9d5bc43f4 100644 --- a/packages/pl-fe/src/styles/new/layout.scss +++ b/packages/pl-fe/src/styles/new/layout.scss @@ -394,4 +394,10 @@ div:has(.⁂-background-shapes), .dark { @include mixins.text($size: inherit, $theme: subtle); text-decoration-line: underline; } +} + +.⁂-separator::before { + @include mixins.text($size: sm, $theme: muted); + content: '·'; + user-select: none; } \ No newline at end of file