Updated max lines of status content
Improving visibility
This commit is contained in:
parent
f40ff36f1b
commit
4787060608
@ -7,7 +7,7 @@ import Permalink from './permalink';
|
||||
import classnames from 'classnames';
|
||||
import Icon from 'gabsocial/components/icon';
|
||||
|
||||
const MAX_HEIGHT = 642; // 20px * 32 (+ 2px padding at the top)
|
||||
const MAX_HEIGHT = 200;
|
||||
|
||||
export default class StatusContent extends React.PureComponent {
|
||||
|
||||
|
@ -30,10 +30,11 @@ export default class StatusQuote extends React.PureComponent {
|
||||
return (
|
||||
<NavLink to={statusUrl} className="status__quote">
|
||||
<DisplayName account={account} />
|
||||
|
||||
<StatusContent
|
||||
status={status}
|
||||
expanded={false}
|
||||
onClick
|
||||
collapsable
|
||||
/>
|
||||
</NavLink>
|
||||
);
|
||||
|
@ -428,7 +428,7 @@
|
||||
}
|
||||
|
||||
.status__content.status__content--collapsed {
|
||||
max-height: 20px * 15; // 15 lines is roughly above 500 characters
|
||||
max-height: 20px * 10; // 10 lines x 20px per line of text
|
||||
}
|
||||
|
||||
.status__content__read-more-button {
|
||||
|
Loading…
Reference in New Issue
Block a user