Issue#2662: Make Followers Content Fit With overflow ending in ellipsis (#2678)
* Issue#2662: Make Followers Content Fit With overflow ending in ellipsis * Prettified Code! * Fixed Linting Issue * Resolved line break issue --------- Co-authored-by: prachurjya15 <prachurjya15@users.noreply.github.com>
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
.account {
|
.account {
|
||||||
color: var(--theme-color-components-text-on-light);
|
color: var(--theme-color-components-text-on-light);
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
line-height: 0.9rem;
|
line-height: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include screen(mobile) {
|
@include screen(mobile) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Avatar, Col, Row } from 'antd';
|
import { Avatar, Col, Row, Typography } from 'antd';
|
||||||
import React, { FC } from 'react';
|
import React, { FC } from 'react';
|
||||||
import cn from 'classnames';
|
import cn from 'classnames';
|
||||||
import { Follower } from '../../../../interfaces/follower';
|
import { Follower } from '../../../../interfaces/follower';
|
||||||
@@ -17,9 +17,13 @@ export const SingleFollower: FC<SingleFollowerProps> = ({ follower }) => (
|
|||||||
<img src="/logo" alt="Logo" className={styles.placeholder} />
|
<img src="/logo" alt="Logo" className={styles.placeholder} />
|
||||||
</Avatar>
|
</Avatar>
|
||||||
</Col>
|
</Col>
|
||||||
<Col>
|
<Col span={18}>
|
||||||
<Row className={styles.name}>{follower.name}</Row>
|
<Row className={styles.name}>
|
||||||
<Row className={styles.account}>{follower.username}</Row>
|
<Typography.Text ellipsis>{follower.name}</Typography.Text>
|
||||||
|
</Row>
|
||||||
|
<Row className={styles.account}>
|
||||||
|
<Typography.Text ellipsis>{follower.username}</Typography.Text>
|
||||||
|
</Row>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user