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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user