Implement more nitpicks

- fix avatar inital aligment
- right align names
- set flair height to avatar's
- fix conditions for resizing to be more stable
This commit is contained in:
Jorik Schellekens 2020-05-13 14:04:46 +01:00
parent 5029c3f143
commit 3f04f5163a
2 changed files with 14 additions and 3 deletions

View file

@ -52,11 +52,11 @@ export default class IRCTimelineProfileResizer extends React.Component<IProps, I
console.log({offset})
// If we're trying to go smaller than min width, don't.
if (this.state.width <= this.props.minWidth && offset <= 0) {
if (newWidth < this.props.minWidth) {
return location;
}
if (this.state.width >= this.props.maxWidth && offset >= 0) {
if (newWidth > this.props.maxWidth) {
return location;
}