@soul-refiner/design-system 1.7.17 → 1.7.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -219,6 +219,7 @@ const BottomWrapper = styled.div `
|
|
|
219
219
|
gap: 18px;
|
|
220
220
|
`;
|
|
221
221
|
const Input = styled.input `
|
|
222
|
+
max-width: 140px;
|
|
222
223
|
padding: 0px;
|
|
223
224
|
flex: 1;
|
|
224
225
|
font-family: var(--font-inter);
|
|
@@ -234,6 +235,7 @@ const Input = styled.input `
|
|
|
234
235
|
}
|
|
235
236
|
`;
|
|
236
237
|
const InputWrapper = styled.div `
|
|
238
|
+
width: fit-content;
|
|
237
239
|
display: flex;
|
|
238
240
|
gap: 8px;
|
|
239
241
|
align-items: center;
|
|
@@ -34,6 +34,7 @@ export const Time = ({ selectedTime, setTime, selectedPeriod, setPeriod, }) => {
|
|
|
34
34
|
}, additionalOnChange: setPeriod, defaultValue: selectedTime, defaultAdditionalValue: selectedPeriod }));
|
|
35
35
|
};
|
|
36
36
|
const InputWrapper = styled.div `
|
|
37
|
+
width: fit-content;
|
|
37
38
|
display: flex;
|
|
38
39
|
gap: 8px;
|
|
39
40
|
align-items: center;
|
|
@@ -52,6 +53,7 @@ const InputWrapper = styled.div `
|
|
|
52
53
|
}
|
|
53
54
|
`;
|
|
54
55
|
const Input = styled.input `
|
|
56
|
+
max-width: 120px;
|
|
55
57
|
padding: 0px;
|
|
56
58
|
flex: 1;
|
|
57
59
|
font-family: var(--font-inter);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Image from 'next/image';
|
|
4
|
+
import Link from 'next/link';
|
|
4
5
|
import styled from 'styled-components';
|
|
5
6
|
import { H, P } from '../../atoms/typography';
|
|
6
7
|
import { TimeAgo } from '../../atoms/time_ago/time_ago';
|
|
@@ -94,8 +95,8 @@ export const Post = ({ actions, author, authorActive, authorHref, authorImage, a
|
|
|
94
95
|
React.createElement(NavArrow, { "$side": "right", "$visible": curr !== images.length - 1, onClick: handleIncrement },
|
|
95
96
|
React.createElement(ChevronRight, { color: "white", size: 48 }))))),
|
|
96
97
|
React.createElement(Header, null,
|
|
97
|
-
React.createElement(Avatar, { href: authorHref, image: authorImage, size: 64, status: authorActive ? 'online' : undefined, subtitle: React.createElement(P, { as: "span", sx: "vertical-align: top;", "$fontSize": 14, "$lineHeight": 20 },
|
|
98
|
-
React.createElement(TimeAgo, { date: new Date(createdDate) })), title: React.createElement(H, { as: "span", "$bold": true, "$fontSize": 18, "$lineHeight": 26 }, author), textPosition: "right", tooltipContent: avatarTooltipContent, tooltipSx: avatarTooltipSx }),
|
|
98
|
+
React.createElement(Avatar, { as: !!authorHref ? Link : 'button', href: authorHref, image: authorImage, size: 64, status: authorActive ? 'online' : undefined, subtitle: React.createElement(P, { as: "span", sx: "vertical-align: top;", "$fontSize": 14, "$lineHeight": 20 },
|
|
99
|
+
React.createElement(TimeAgo, { date: new Date(createdDate) })), title: React.createElement(H, { as: "span", "$bold": true, "$fontSize": 18, "$lineHeight": 26 }, author), textPosition: "right", tooltipContent: avatarTooltipContent, tooltipSx: avatarTooltipSx, sx: !!authorHref ? 'img { cursor: pointer; }' : undefined }),
|
|
99
100
|
dropdown),
|
|
100
101
|
!!content?.length && (React.createElement("div", { style: { padding: '16px 24px' } },
|
|
101
102
|
React.createElement(P, { "$textClampLines": isPaywalled ? 2 : undefined }, content))),
|