mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +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}
|
onMouseOver={this.onHover}
|
||||||
onMouseOut={this.onLeave}
|
onMouseOut={this.onLeave}
|
||||||
>
|
>
|
||||||
<div
|
{
|
||||||
className="title-dialog-pane title-dialog-name"
|
title &&
|
||||||
ref={el => { this.ref_title = el; }}
|
<div
|
||||||
>
|
className="title-dialog-pane title-dialog-name"
|
||||||
<h2>{title}</h2>
|
ref={el => { this.ref_title = el; }}
|
||||||
</div>
|
>
|
||||||
<div
|
<h2>{title}</h2>
|
||||||
className="title-dialog-pane title-dialog-text"
|
</div>
|
||||||
style={{
|
}
|
||||||
height: (raised ? height_raised : height),
|
{
|
||||||
display: height === 0 ? 'none' : 'block'
|
|
||||||
}}
|
|
||||||
ref={el => { this.ref_overflow = el; }}
|
|
||||||
>
|
|
||||||
<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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue