mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
stickers with empty text should not have blackbox at view mode
This commit is contained in:
parent
cf8edf8a81
commit
16f5875adc
3 changed files with 33 additions and 22 deletions
|
@ -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}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue