You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-13 00:10:37 +02:00
Desktop: Fix prompt tag dialog input can be wider than its container (#10818)
This commit is contained in:
@ -191,6 +191,8 @@ export default class PromptDialog extends React.Component<Props, any> {
|
|||||||
|
|
||||||
this.styles_.desc = { ...theme.textStyle, marginTop: 10 };
|
this.styles_.desc = { ...theme.textStyle, marginTop: 10 };
|
||||||
|
|
||||||
|
this.styles_.dialog = { maxWidth: width };
|
||||||
|
|
||||||
return this.styles_;
|
return this.styles_;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -304,7 +306,7 @@ export default class PromptDialog extends React.Component<Props, any> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog className='prompt-dialog'>
|
<Dialog className='prompt-dialog' contentStyle={styles.dialog}>
|
||||||
<label style={styles.label}>{this.props.label ? this.props.label : ''}</label>
|
<label style={styles.label}>{this.props.label ? this.props.label : ''}</label>
|
||||||
<div style={{ display: 'inline-block', color: 'black', backgroundColor: theme.backgroundColor }}>
|
<div style={{ display: 'inline-block', color: 'black', backgroundColor: theme.backgroundColor }}>
|
||||||
{inputComp}
|
{inputComp}
|
||||||
|
Reference in New Issue
Block a user