1
0
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:
Henry Heino
2024-08-03 08:43:00 -07:00
committed by GitHub
parent 9cf298ef44
commit 88cf1d6232

View File

@ -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}