stickers with empty text should not have blackbox at view mode

This commit is contained in:
muerwre 2019-02-06 14:26:50 +07:00
parent cf8edf8a81
commit 16f5875adc
3 changed files with 33 additions and 22 deletions

View file

@ -1,4 +1,5 @@
import React from 'react';
import classnames from 'classnames';
type State = {
text: String,
@ -21,7 +22,7 @@ export class StickerDesc extends React.PureComponent<void, State> {
return (
<div
className="sticker-desc"
className={classnames('sticker-desc', { is_empty: !text.trim() })}
onMouseDown={this.blockMouse}
onMouseUp={this.blockMouse}
>