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 {
|
||||
color: var(--theme-color-components-text-on-light);
|
||||
word-break: break-all;
|
||||
line-height: 0.9rem;
|
||||
line-height: 1rem;
|
||||
}
|
||||
|
||||
@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 cn from 'classnames';
|
||||
import { Follower } from '../../../../interfaces/follower';
|
||||
@@ -17,9 +17,13 @@ export const SingleFollower: FC<SingleFollowerProps> = ({ follower }) => (
|
||||
<img src="/logo" alt="Logo" className={styles.placeholder} />
|
||||
</Avatar>
|
||||
</Col>
|
||||
<Col>
|
||||
<Row className={styles.name}>{follower.name}</Row>
|
||||
<Row className={styles.account}>{follower.username}</Row>
|
||||
<Col span={18}>
|
||||
<Row className={styles.name}>
|
||||
<Typography.Text ellipsis>{follower.name}</Typography.Text>
|
||||
</Row>
|
||||
<Row className={styles.account}>
|
||||
<Typography.Text ellipsis>{follower.username}</Typography.Text>
|
||||
</Row>
|
||||
</Col>
|
||||
</Row>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user