From d402ef0d592be18cf92c5042ae0d3208de99f656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Tue, 10 Mar 2026 01:23:39 +0100 Subject: [PATCH] nicolium: some style/layout changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/nicolium/src/columns/timeline.tsx | 6 +- .../src/components/pull-to-refresh.tsx | 6 +- .../features/account/components/header.tsx | 80 +++++++++---------- .../components/panels/profile-info-panel.tsx | 4 +- .../nicolium/src/layouts/profile-layout.tsx | 21 ++--- .../nicolium/src/styles/new/accounts.scss | 4 +- .../nicolium/src/styles/new/timelines.scss | 2 +- 7 files changed, 60 insertions(+), 63 deletions(-) diff --git a/packages/nicolium/src/columns/timeline.tsx b/packages/nicolium/src/columns/timeline.tsx index a36baf3b4..1d225472f 100644 --- a/packages/nicolium/src/columns/timeline.tsx +++ b/packages/nicolium/src/columns/timeline.tsx @@ -541,10 +541,10 @@ const Timeline: React.FC = ({ liveRegionMessage={messages.queueLiveRegion} /> - {featuredStatusIds && featuredStatusIds.length > 3 && entries?.length > 0 && ( - - )} + {featuredStatusIds && featuredStatusIds.length > 3 && entries?.length > 0 && ( + + )} Promise | void; refreshingContent?: React.JSX.Element | string; pullingContent?: React.JSX.Element | string; - children: React.JSX.Element; + children: React.ReactNode; pullDownThreshold?: number; maxPullDownDistance?: number; resistance?: number; @@ -76,7 +76,7 @@ interface PullToRefreshProps { className?: string; } -const PullToRefresh: React.FC = ({ +const PullToRefresh: React.FC = ({ isPullable = true, onRefresh, refreshingContent = onRefresh ? : <>, diff --git a/packages/nicolium/src/features/account/components/header.tsx b/packages/nicolium/src/features/account/components/header.tsx index 46afe81ec..b1ba1a300 100644 --- a/packages/nicolium/src/features/account/components/header.tsx +++ b/packages/nicolium/src/features/account/components/header.tsx @@ -109,16 +109,14 @@ const Header: React.FC = ({ account }) => { if (!account) { return ( -
-
+
+
-
-
-
-
-
+
+
+
@@ -332,12 +330,12 @@ const Header: React.FC = ({ account }) => { const info = makeInfo(); return ( -
+
{account.moved && typeof account.moved === 'object' && ( )} -
+
= ({ account }) => {
-
-
-
- - - - {account.verified && ( -
- -
- )} -
- -
-
- {ownAccount && account.id !== ownAccount.id && ( - - )} - {renderMessageButton()} - {renderShareButton()} - - - - {renderRssButton()} - - +
+
+ + + + {account.verified && ( +
+
-
+ )} +
+ +
+ {ownAccount && account.id !== ownAccount.id && } + {renderMessageButton()} + {renderShareButton()} + + + + {renderRssButton()} + +
diff --git a/packages/nicolium/src/features/ui/components/panels/profile-info-panel.tsx b/packages/nicolium/src/features/ui/components/panels/profile-info-panel.tsx index e78595b63..4285cf0ca 100644 --- a/packages/nicolium/src/features/ui/components/panels/profile-info-panel.tsx +++ b/packages/nicolium/src/features/ui/components/panels/profile-info-panel.tsx @@ -151,7 +151,7 @@ const ProfileInfoPanel: React.FC = ({ account, username }) => if (!account) { return ( -
+
@{username} @@ -165,7 +165,7 @@ const ProfileInfoPanel: React.FC = ({ account, username }) => const badges = getBadges(); return ( -
+
diff --git a/packages/nicolium/src/layouts/profile-layout.tsx b/packages/nicolium/src/layouts/profile-layout.tsx index 394bcb5fd..b25942688 100644 --- a/packages/nicolium/src/layouts/profile-layout.tsx +++ b/packages/nicolium/src/layouts/profile-layout.tsx @@ -96,17 +96,20 @@ const ProfileLayout: React.FC = () => { <> {account?.local === false && } - -
-
- + +
+ - {account && showTabs && ( - - )} + {account && showTabs && ( + + )} - -
+
diff --git a/packages/nicolium/src/styles/new/accounts.scss b/packages/nicolium/src/styles/new/accounts.scss index e1685f141..9237786d1 100644 --- a/packages/nicolium/src/styles/new/accounts.scss +++ b/packages/nicolium/src/styles/new/accounts.scss @@ -1,7 +1,9 @@ @use 'mixins'; .⁂-account-layout { - @include mixins.card($size: lg); + display: flex; + flex-direction: column; + gap: 1rem; } .⁂-account-card { diff --git a/packages/nicolium/src/styles/new/timelines.scss b/packages/nicolium/src/styles/new/timelines.scss index 5181bb0ab..cf72c9389 100644 --- a/packages/nicolium/src/styles/new/timelines.scss +++ b/packages/nicolium/src/styles/new/timelines.scss @@ -96,7 +96,7 @@ .⁂-skip-pinned { position: absolute; - right: 1.5rem; + right: 0; z-index: 10; display: flex; width: fit-content;