1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Desktop: Fixes #3131: Long URIs break Note Info dialog (#3136)

This commit is contained in:
Mohammed Rabeeh 2020-05-09 16:23:16 +05:30 committed by GitHub
parent e768b8cfea
commit b8158f3b53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,8 +295,9 @@ class NotePropertiesDialog extends React.Component {
const ll = this.latLongFromLocation(value);
url = Note.geoLocationUrlFromLatLong(ll.latitude, ll.longitude);
}
const urlStyle = Object.assign({}, theme.urlStyle, { maxWidth: '180px', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis' });
controlComp = (
<a href="#" onClick={() => bridge().openExternal(url)} style={theme.urlStyle}>
<a href="#" onClick={() => bridge().openExternal(url)} style={urlStyle}>
{displayedValue}
</a>
);