mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
conditional dialog rendering
This commit is contained in:
parent
41f40a783f
commit
a4b620471a
1 changed files with 21 additions and 16 deletions
|
@ -73,26 +73,31 @@ export class Component extends React.PureComponent<ITitleDialogProps, ITitleDial
|
|||
onMouseOver={this.onHover}
|
||||
onMouseOut={this.onLeave}
|
||||
>
|
||||
<div
|
||||
className="title-dialog-pane title-dialog-name"
|
||||
ref={el => { this.ref_title = el; }}
|
||||
>
|
||||
<h2>{title}</h2>
|
||||
</div>
|
||||
<div
|
||||
className="title-dialog-pane title-dialog-text"
|
||||
style={{
|
||||
height: (raised ? height_raised : height),
|
||||
display: height === 0 ? 'none' : 'block'
|
||||
}}
|
||||
ref={el => { this.ref_overflow = el; }}
|
||||
>
|
||||
{
|
||||
title &&
|
||||
<div
|
||||
className="title-dialog-pane title-dialog-name"
|
||||
ref={el => { this.ref_title = el; }}
|
||||
>
|
||||
<h2>{title}</h2>
|
||||
</div>
|
||||
}
|
||||
{
|
||||
<div
|
||||
ref={el => { this.ref_text = el; }}
|
||||
className="title-dialog-pane title-dialog-text"
|
||||
style={{
|
||||
height: (raised ? height_raised : height),
|
||||
display: height === 0 ? 'none' : 'block'
|
||||
}}
|
||||
ref={el => { this.ref_overflow = el; }}
|
||||
>
|
||||
<div
|
||||
ref={el => { this.ref_text = el; }}
|
||||
>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue