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:
parent
5029c3f143
commit
3f04f5163a
2 changed files with 14 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue