Skip to content

Let's use AI to Earn!

feat: 图文发布添加抖音活动奖励和关联热点,活动奖励UI优化

gaoSir8fcb4d711b9f
diff --git a/src/views/publish/children/imagePage/components/ImageRightSetting/components/ImageRightSettingCommon.tsx b/src/views/publish/children/imagePage/components/ImageRightSetting/components/ImageRightSettingCommon.tsx
index 37327818..ab781ef4 100644
--- a/src/views/publish/children/imagePage/components/ImageRightSetting/components/ImageRightSettingCommon.tsx
+++ b/src/views/publish/children/imagePage/components/ImageRightSetting/components/ImageRightSettingCommon.tsx
@@ -22,6 +22,7 @@ import CommonScheduledTimeSelect, {
} from '../../../../../components/CommonComponents/CommonScheduledTimeSelect';
import dayjs from 'dayjs';
import { AccountRestartLogin } from '../../../../../components/CommonComponents/CommonComponents';
+import { AccountPlatInfoMap } from '../../../../../../account/comment';
interface DebounceSelectProps<ValueType = any>
extends Omit<SelectProps<ValueType | ValueType[]>, 'options' | 'children'> {}
@@ -29,7 +30,7 @@ interface DebounceSelectProps<ValueType = any>
const { TextArea } = Input;
// 重新登录
-const ImgTextPubRestartLogin = () => {
+export const ImgTextPubRestartLogin = () => {
const { imageAccountItem } = useImagePlatParams();
const { accountRestart } = useImagePageStore(
useShallow((state) => ({
@@ -90,6 +91,11 @@ export const ImgTextTopicSelect = ({ ...props }: CommonTopicSelectProps) => {
updateAccounts: state.updateAccounts,
})),
);
+ const { topicMax } = AccountPlatInfoMap.get(
+ imageAccountItem.account.type,
+ )!.commonPubParamsConfig;
+ props.maxCount = props.maxCount || topicMax;
+ props.tips = props.tips || `您可以添加${topicMax}个话题`;
return (
<CommonTopicSelect
diff --git a/src/views/publish/children/imagePage/components/ImageRightSetting/components/children/ImageParamsSet_Douyin.tsx b/src/views/publish/children/imagePage/components/ImageRightSetting/components/children/ImageParamsSet_Douyin.tsx
index eda8ea63..31925cef 100644
--- a/src/views/publish/children/imagePage/components/ImageRightSetting/components/children/ImageParamsSet_Douyin.tsx
+++ b/src/views/publish/children/imagePage/components/ImageRightSetting/components/children/ImageParamsSet_Douyin.tsx
@@ -1,25 +1,114 @@
-import { forwardRef, memo } from 'react';
+import React, { forwardRef, memo } from 'react';
import { ImageRightSettingChildProps } from '../ImageParamsSet.type';
import {
ImgTextDescTextArea,
ImgTextLocationSelect,
+ ImgTextPubRestartLogin,
ImgTextScheduledTimeSelect,
ImgTextTitleInput,
ImgTextTopicSelect,
ImgTextUserSelect,
} from '../ImageRightSettingCommon';
+import { useShallow } from 'zustand/react/shallow';
+import {
+ CommonActivitySelect,
+ CommonHotspotSelect,
+} from '../../../../../../components/CommonComponents/DouyinCommonComponents';
+import { AccountType } from '../../../../../../../../../commont/AccountEnum';
+import { ILableValue } from '../../../../../../../../../electron/db/models/workData';
+import { useImagePlatParams } from './hooks/useImagePlatParams';
+import { useImagePageStore } from '../../../../useImagePageStore';
+import { AccountPlatInfoMap } from '../../../../../../../account/comment';
+
+const HotspotSelect = () => {
+ const { imageAccountItem } = useImagePlatParams();
+ const { setOnePubParams } = useImagePageStore(
+ useShallow((state) => ({
+ setOnePubParams: state.setOnePubParams,
+ })),
+ );
+
+ return (
+ <CommonHotspotSelect
+ account={imageAccountItem.account}
+ value={
+ imageAccountItem.pubParams!.diffParams![AccountType.Douyin]!.hotPoint
+ }
+ onChange={(newValue) => {
+ const newDiffParams = imageAccountItem.pubParams.diffParams!;
+ newDiffParams[AccountType.Douyin]!.hotPoint = newValue as ILableValue;
+ setOnePubParams(
+ {
+ diffParams: newDiffParams,
+ },
+ imageAccountItem.account.id,
+ );
+ }}
+ />
+ );
+};
+
+const ActivitySelect = () => {
+ const { imageAccountItem } = useImagePlatParams();
+ const { setOnePubParams } = useImagePageStore(
+ useShallow((state) => ({
+ setOnePubParams: state.setOnePubParams,
+ })),
+ );
+ const { topicMax } = AccountPlatInfoMap.get(
+ imageAccountItem.account.type,
+ )!.commonPubParamsConfig;
+
+ return (
+ <CommonActivitySelect
+ account={imageAccountItem.account}
+ maxCount={topicMax - imageAccountItem.pubParams!.topics!.length}
+ value={
+ imageAccountItem.pubParams!.diffParams![AccountType.Douyin]!.activitys
+ }
+ onChange={(newValue) => {
+ const newDiffParams = imageAccountItem.pubParams.diffParams!;
+ newDiffParams[AccountType.Douyin]!.activitys =
+ newValue as ILableValue[];
+ setOnePubParams(
+ {
+ diffParams: newDiffParams,
+ },
+ imageAccountItem.account.id,
+ );
+ }}
+ >
+ <ImgTextPubRestartLogin />
+ </CommonActivitySelect>
+ );
+};
const ImageParamsSet_Douyin = memo(
forwardRef(({}: ImageRightSettingChildProps, _) => {
+ const { imageAccountItem } = useImagePlatParams();
+ const { topicMax } = AccountPlatInfoMap.get(
+ imageAccountItem.account.type,
+ )!.commonPubParamsConfig;
return (
<>
<ImgTextTitleInput placeholder="添加作品标题" />
<ImgTextDescTextArea placeholder="添加作品简介" />
- <ImgTextTopicSelect tips="最多可添加5个话题(包含活动奖励)" />
+ <ImgTextTopicSelect
+ maxCount={
+ topicMax -
+ imageAccountItem.pubParams!.diffParams![AccountType.Douyin]!
+ .activitys!.length
+ }
+ tips="最多可添加5个话题(包含活动奖励)"
+ />
+
+ <ActivitySelect />
+
+ <ImgTextUserSelect maxCount={100} tips="您可以添加100个好友" />
- <ImgTextUserSelect />
+ <HotspotSelect />
<ImgTextLocationSelect />
diff --git a/src/views/publish/children/imagePage/components/ImageRightSetting/components/children/ImageParamsSet_XHS.tsx b/src/views/publish/children/imagePage/components/ImageRightSetting/components/children/ImageParamsSet_XHS.tsx
index f68074e2..56107c76 100644
--- a/src/views/publish/children/imagePage/components/ImageRightSetting/components/children/ImageParamsSet_XHS.tsx
+++ b/src/views/publish/children/imagePage/components/ImageRightSetting/components/children/ImageParamsSet_XHS.tsx
@@ -17,7 +17,7 @@ const ImageParamsSet_XHS = memo(
<ImgTextDescTextArea placeholder="填写更全面的描述信息,让更多人看到你吧!" />
- <ImgTextTopicSelect maxLength={20} tips="您可以添加20个话题" />
+ <ImgTextTopicSelect />
<ImgTextUserSelect />
diff --git a/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_DouYin.tsx b/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_DouYin.tsx
index 78efc9b4..6272e7c4 100644
--- a/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_DouYin.tsx
+++ b/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_DouYin.tsx
@@ -67,7 +67,6 @@ const ActivitySelect = ({ currChooseAccount }: IVideoPubSetModalChildProps) => {
const newDiffParams = currChooseAccount.pubParams.diffParams!;
newDiffParams[AccountType.Douyin]!.activitys =
newValue as ILableValue[];
- console.log(newValue);
setOnePubParams(
{
diffParams: newDiffParams,
@@ -118,7 +117,7 @@ const VideoPubSetModal_DouYin = memo(
<UserSelect
currChooseAccount={currChooseAccount}
- maxCount={10}
+ maxCount={100}
tips="您可以添加100个好友"
title="@好友"
/>
diff --git a/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_KWAI.tsx b/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_KWAI.tsx
index 0b92a36a..dbe00645 100644
--- a/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_KWAI.tsx
+++ b/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_KWAI.tsx
@@ -20,9 +20,7 @@ const VideoPubSetModal_KWAI = memo(
{ currChooseAccount }: IVideoPubSetModalChildProps,
ref: ForwardedRef<IVideoPubSetModalChildRef>,
) => {
- const { setOnePubParams, platInfo } =
- useVideoPubSetModal(currChooseAccount);
- const { topicMax } = platInfo.commonPubParamsConfig;
+ const { setOnePubParams } = useVideoPubSetModal(currChooseAccount);
return (
<>
@@ -32,11 +30,7 @@ const VideoPubSetModal_KWAI = memo(
maxLength={500}
/>
- <TopicSelect
- maxCount={topicMax}
- currChooseAccount={currChooseAccount}
- tips={`您可以添加${topicMax}个话题`}
- />
+ <TopicSelect currChooseAccount={currChooseAccount} />
<UserSelect
currChooseAccount={currChooseAccount}
diff --git a/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_XSH.tsx b/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_XSH.tsx
index d9e769dc..e452303c 100644
--- a/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_XSH.tsx
+++ b/src/views/publish/children/videoPage/components/VideoPubSetModal/children/VideoPubSetModal_XSH.tsx
@@ -39,11 +39,7 @@ const VideoPubSetModal_WxSph = memo(
maxLength={1000}
/>
- <TopicSelect
- maxCount={topicMax}
- currChooseAccount={currChooseAccount}
- tips={`您可以添加${topicMax}个话题`}
- />
+ <TopicSelect currChooseAccount={currChooseAccount} />
<UserSelect currChooseAccount={currChooseAccount} title="@用户" />
diff --git a/src/views/publish/children/videoPage/components/VideoPubSetModal/components/TopicSelect.tsx b/src/views/publish/children/videoPage/components/VideoPubSetModal/components/TopicSelect.tsx
index b13cff61..3e34de65 100644
--- a/src/views/publish/children/videoPage/components/VideoPubSetModal/components/TopicSelect.tsx
+++ b/src/views/publish/children/videoPage/components/VideoPubSetModal/components/TopicSelect.tsx
@@ -7,6 +7,7 @@ import { IVideoChooseItem } from '../../../videoPage';
import { useVideoPageStore } from '../../../useVideoPageStore';
import { useShallow } from 'zustand/react/shallow';
import { VideoPubRestartLogin } from './VideoPubSetModalCommon';
+import useVideoPubSetModal from '../children/hooks/useVideoPubSetModal';
interface DebounceSelectProps
extends CommonTopicSelectProps<CommonTopicSelectValueType> {
@@ -18,12 +19,15 @@ export default function TopicSelect({
currChooseAccount,
...props
}: DebounceSelectProps) {
- const { setOnePubParams, updateAccounts } = useVideoPageStore(
+ const { updateAccounts } = useVideoPageStore(
useShallow((state) => ({
- setOnePubParams: state.setOnePubParams,
updateAccounts: state.updateAccounts,
})),
);
+ const { setOnePubParams, platInfo } = useVideoPubSetModal(currChooseAccount);
+ const { topicMax } = platInfo.commonPubParamsConfig;
+ props.maxCount = props.maxCount || topicMax;
+ props.tips = props.tips || `您可以添加${topicMax}个话题`;
return (
<CommonTopicSelect
diff --git a/src/views/publish/children/videoPage/components/VideoPubSetModal/components/UserSelect.tsx b/src/views/publish/children/videoPage/components/VideoPubSetModal/components/UserSelect.tsx
index c4f89808..aa994685 100644
--- a/src/views/publish/children/videoPage/components/VideoPubSetModal/components/UserSelect.tsx
+++ b/src/views/publish/children/videoPage/components/VideoPubSetModal/components/UserSelect.tsx
@@ -7,6 +7,7 @@ import { useVideoPageStore } from '../../../useVideoPageStore';
import { useShallow } from 'zustand/react/shallow';
import { VideoPubRestartLogin } from './VideoPubSetModalCommon';
import React from 'react';
+import useVideoPubSetModal from '../children/hooks/useVideoPubSetModal';
interface DebounceSelectProps extends CommonUserSelectProps<IUsersItem> {
currChooseAccount: IVideoChooseItem;
@@ -17,12 +18,12 @@ export default function UserSelect({
currChooseAccount,
...props
}: DebounceSelectProps) {
- const { setOnePubParams, updateAccounts } = useVideoPageStore(
+ const { updateAccounts } = useVideoPageStore(
useShallow((state) => ({
- setOnePubParams: state.setOnePubParams,
updateAccounts: state.updateAccounts,
})),
);
+ const { setOnePubParams } = useVideoPubSetModal(currChooseAccount);
return (
<CommonUserSelect
diff --git a/src/views/publish/components/CommonComponents/CommonTopicSelect.tsx b/src/views/publish/components/CommonComponents/CommonTopicSelect.tsx
index 14503f8e..e1d38360 100644
--- a/src/views/publish/components/CommonComponents/CommonTopicSelect.tsx
+++ b/src/views/publish/components/CommonComponents/CommonTopicSelect.tsx
@@ -10,7 +10,7 @@ import styles from './commonComponents.module.scss';
export interface CommonTopicSelectProps<ValueType = any>
extends Omit<SelectProps<ValueType | ValueType[]>, 'options' | 'children'> {
- tips: string;
+ tips?: string;
account?: AccountInfo;
onAccountChange?: (account: AccountInfo) => void;
children?: React.ReactNode;
diff --git a/src/views/publish/components/CommonComponents/CommonUserSelect.tsx b/src/views/publish/components/CommonComponents/CommonUserSelect.tsx
index 70d61c01..a5f7db25 100644
--- a/src/views/publish/components/CommonComponents/CommonUserSelect.tsx
+++ b/src/views/publish/components/CommonComponents/CommonUserSelect.tsx
@@ -113,7 +113,7 @@ export default function CommonUserSelect({
}}
/>
{children}
- {props.tips && <p className="videoPubSetModal_con-tips">{props.tips}</p>}
+ {props.tips && <p className={styles.tips}>{props.tips}</p>}
</>
);
}
diff --git a/src/views/publish/components/CommonComponents/DouyinCommonComponents.tsx b/src/views/publish/components/CommonComponents/DouyinCommonComponents.tsx
index 6b85afdd..03dcc464 100644
--- a/src/views/publish/components/CommonComponents/DouyinCommonComponents.tsx
+++ b/src/views/publish/components/CommonComponents/DouyinCommonComponents.tsx
@@ -13,19 +13,33 @@ import {
icpGetDoytinHot,
icpGetDoytinHotAll,
} from '../../../../icp/publish';
-import { Button, Modal, Select, SelectProps, Spin, Tooltip } from 'antd';
+import {
+ Button,
+ Checkbox,
+ message,
+ Modal,
+ Select,
+ SelectProps,
+ Spin,
+ Tabs,
+ Tooltip,
+} from 'antd';
import { QuestionCircleOutlined } from '@ant-design/icons';
import styles from './commonComponents.module.scss';
import { describeNumber } from '../../../../utils';
import { onAccountLoginFinish } from '../../../../icp/receiveMsg';
-import { AccountInfo } from '../../../account/comment';
+import { AccountInfo, AccountPlatInfoMap } from '../../../account/comment';
import { ILableValue } from '../../../../../electron/db/models/video';
+import { AccountType } from '../../../../../commont/AccountEnum';
interface DouyinCommonComponentsProps
- extends Omit<
- SelectProps<ILableValue[] | ILableValue>,
- 'options' | 'children'
- > {
+ extends Omit<SelectProps<ILableValue[]>, 'options' | 'children'> {
+ account?: AccountInfo;
+ children?: React.ReactNode;
+}
+
+interface DouyinCommonComponentsHotProps
+ extends Omit<SelectProps<ILableValue>, 'options' | 'children'> {
account?: AccountInfo;
children?: React.ReactNode;
}
@@ -35,7 +49,7 @@ export const CommonHotspotSelect = ({
account,
children,
...props
-}: DouyinCommonComponentsProps) => {
+}: DouyinCommonComponentsHotProps) => {
if (!account) return '';
const [doytinHotAll, setDoytinHotAll] = useState<DouyinHotSentence[]>([]);
@@ -105,14 +119,17 @@ export const CommonActivitySelect = ({
...props
}: DouyinCommonComponentsProps) => {
if (!account) return '';
-
const [loading, setLoading] = useState(false);
- const [open, setOpen] = useState(false);
+ const [detailsOpen, setDetailsOpen] = useState(false);
+ const [activityOpen, setActivityOpen] = useState(false);
const [options, setOptions] = useState<DouyinActivity[]>([]);
- // 活动标签数据
const activityTagsMap = useRef<Map<number, DouyinQueryTags>>(new Map());
+ // 活动标签数据
+ const [activityTagList, setActivityTagList] = useState<DouyinQueryTags[]>([]);
const [activityDetails, setActivityDetails] =
useState<DouyinActivityDetailResponse>();
+ const [activityTag, setActivityTag] = useState<string>('');
+ const [value, setValue] = useState<ILableValue[]>([]);
const init = () => {
icpGetDouyinActivity(account).then((res) => {
@@ -122,6 +139,8 @@ export const CommonActivitySelect = ({
res.data?.query_tags?.map((v) => {
activityTagsMap.current.set(v.id, v);
});
+ setActivityTagList(res.data.query_tags);
+ setActivityTag(`${res.data.query_tags[0].id}`);
});
};
@@ -133,13 +152,36 @@ export const CommonActivitySelect = ({
});
}, []);
+ const selection = (data: DouyinActivity) => {
+ if (value?.some((v) => v.value === data.activity_id)) {
+ setValue(value?.filter((v) => v.value !== data.activity_id));
+ } else {
+ setValue([
+ ...(value || []),
+ {
+ label: data.activity_name,
+ value: data.activity_id,
+ },
+ ]);
+ }
+ };
+
+ useEffect(() => {
+ setValue(props.value || []);
+ }, [props.value]);
+
+ const closeSelectActivity = () => {
+ setActivityOpen(false);
+ setValue(props.value || []);
+ };
+
return (
<>
<Modal
- open={open}
+ open={detailsOpen}
title="活动详情"
footer={null}
- onCancel={() => setOpen(false)}
+ onCancel={() => setDetailsOpen(false)}
>
<Spin spinning={loading}>
<div className={styles.activityDetails}>
@@ -194,6 +236,92 @@ export const CommonActivitySelect = ({
</Spin>
</Modal>
+ <Modal
+ title="选择活动"
+ width={700}
+ open={activityOpen}
+ onCancel={closeSelectActivity}
+ onOk={() => {
+ if (value.length > props.maxCount!) {
+ message.warning(
+ `话题和活动最多可添加 ${AccountPlatInfoMap.get(AccountType.Douyin)?.commonPubParamsConfig.topicMax} 个`,
+ );
+ } else {
+ setActivityOpen(false);
+ if (props.onChange) props.onChange(value);
+ }
+ }}
+ >
+ <Tabs
+ activeKey={activityTag}
+ onChange={setActivityTag}
+ type="card"
+ items={activityTagList.map((v) => {
+ return {
+ key: `${v.id}`,
+ label: v.name,
+ };
+ })}
+ />
+ {options
+ .filter((v) => v.query_tag === +activityTag)
+ .map((data) => {
+ return (
+ <div
+ className={styles.activitySelect}
+ onClick={() => {
+ selection(data);
+ }}
+ key={data.activity_id}
+ >
+ <div className="activitySelect-left">
+ <Checkbox
+ checked={value?.some((v) => v.value === data.activity_id)}
+ onClick={(e) => {
+ e.stopPropagation();
+ }}
+ onChange={(e) => {
+ selection(data);
+ }}
+ />
+ <div className="activitySelect-left-img">
+ <img src={data.cover_image} />
+ </div>
+ <ul>
+ <li>{data.activity_name}</li>
+ <li>热度:{data.hot_score}</li>
+ </ul>
+ </div>
+ <div className="activitySelect-right">
+ <div className="activitySelect-right-top">
+ {activityTagsMap.current.get(data.query_tag)?.name}
+ </div>
+ <div className="activitySelect-right-bottom">
+ <span>时间:02.27~03.31</span>
+ <Button
+ type="link"
+ onClick={async (e) => {
+ e.stopPropagation();
+ setDetailsOpen(true);
+ setLoading(true);
+ setActivityDetails(undefined);
+ const res = await getDouyinActivityDetails(
+ account,
+ data.activity_id,
+ );
+ setLoading(false);
+ setActivityDetails(res);
+ }}
+ >
+ 活动详情
+ </Button>
+ </div>
+ </div>
+ </div>
+ );
+ })}
+ </Modal>
+
<h1>
活动奖励
<Tooltip title="添加活动将有机会获得流量奖励">
@@ -208,45 +336,19 @@ export const CommonActivitySelect = ({
labelInValue
mode="multiple"
filterOption={false}
- optionRender={({ data }) => {
- return (
- <div className={styles.activitySelect}>
- <div className="activitySelect-left">
- <div className="activitySelect-left-img">
- <img src={data.cover_image} />
- </div>
- <ul>
- <li>{data.label}</li>
- <li>热度:{data.hot_score}</li>
- </ul>
- </div>
- <div className="activitySelect-right">
- <div className="activitySelect-right-top">
- {activityTagsMap.current.get(data.query_tag)?.name}
- </div>
- <div className="activitySelect-right-bottom">
- <span>时间:02.27~03.31</span>
- <Button
- type="link"
- onClick={async (e) => {
- e.stopPropagation();
- setOpen(true);
- setLoading(true);
- setActivityDetails(undefined);
- const res = await getDouyinActivityDetails(
- account,
- data.activity_id,
- );
- setLoading(false);
- setActivityDetails(res);
- }}
- >
- 活动详情
- </Button>
- </div>
- </div>
- </div>
- );
+ onClick={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ setActivityOpen(true);
+ }}
+ dropdownRender={() => {
+ const customDropdownRef = useRef<HTMLDivElement>(null);
+ if (customDropdownRef.current) {
+ (
+ customDropdownRef.current.parentNode!.parentNode as HTMLDivElement
+ ).style.display = 'none';
+ }
+ return <div ref={customDropdownRef} />;
}}
options={options?.map((v) => {
return {
@@ -256,15 +358,13 @@ export const CommonActivitySelect = ({
};
})}
onDropdownVisibleChange={() => {
- if (options.length === 0 && account?.status === 0) {
+ if (options?.length === 0 && account?.status === 0) {
init();
}
}}
{...props}
/>
- <p className="videoPubSetModal_con-tips">
- 活动奖励 + 话题 最多不能超过五个。
- </p>
+ <p className={styles.tips}>活动奖励 + 话题 最多不能超过五个。</p>
{children}
</>
);
diff --git a/src/views/publish/components/CommonComponents/commonComponents.module.scss b/src/views/publish/components/CommonComponents/commonComponents.module.scss
index e77cfd28..2986d167 100644
--- a/src/views/publish/components/CommonComponents/commonComponents.module.scss
+++ b/src/views/publish/components/CommonComponents/commonComponents.module.scss
@@ -109,21 +109,42 @@
}
.activitySelect {
+ border-bottom: 1px solid var(--superLightGreyColor);
+ height: 50px;
+ cursor: pointer;
+ padding: 10px 0;
+ &:last-of-type {
+ border-bottom: none;
+ }
:global {
display: flex;
align-items: center;
justify-content: space-between;
.activitySelect-left {
display: flex;
+ align-items: center;
+ height: 100%;
&-img {
overflow: hidden;
border-radius: 6px;
+ margin-left: 10px;
}
ul {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+ justify-content: space-between;
+ li {
+ &:nth-child(1) {
+ font-weight: 900;
+ }
+ }
}
img {
- width: 35px;
- object-fit: contain;
+ display: block;
+ width: 36px;
+ height: 42px;
+ border-radius: 8px;
margin-right: 8px;
}
}
@@ -131,11 +152,12 @@
display: flex;
flex-direction: column;
align-items: end;
+ justify-content: space-between;
+ height: 100%;
&-top {
padding: 1px 4px;
border-radius: 6px;
font-size: var(--fs-xs);
- margin-bottom: 6px;
background: rgb(250, 250, 250);
border: 1px solid #bbbbbb;
}