mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
set min height for dialog
This commit is contained in:
parent
8f60a5efd6
commit
2cf83e88ed
2 changed files with 5 additions and 1 deletions
|
@ -65,7 +65,10 @@ export class Component extends React.PureComponent<ITitleDialogProps, ITitleDial
|
|||
const height = nearestInt(Math.min(container_height, Math.min(text_height, min_height)), text_line) + text_margins;
|
||||
const height_raised = nearestInt(Math.min(container_height, Math.min(text_height, max_height)), text_line) + text_margins;
|
||||
|
||||
this.setState({ height, height_raised });
|
||||
this.setState({
|
||||
height: ((height_raised - height) < 2 * text_line ? height_raised : height),
|
||||
height_raised
|
||||
});
|
||||
};
|
||||
|
||||
render() {
|
||||
|
|
|
@ -649,6 +649,7 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
opacity: 0;
|
||||
align-items: flex-start;
|
||||
|
||||
@media(max-width: @mobile_breakpoint) {
|
||||
display: none;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue