From b8158f3b53e36c715b1c677d7b9ab6072bc57d49 Mon Sep 17 00:00:00 2001 From: Mohammed Rabeeh Date: Sat, 9 May 2020 16:23:16 +0530 Subject: [PATCH] Desktop: Fixes #3131: Long URIs break Note Info dialog (#3136) --- ElectronClient/gui/NotePropertiesDialog.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ElectronClient/gui/NotePropertiesDialog.jsx b/ElectronClient/gui/NotePropertiesDialog.jsx index 4d4dbf9918..ad87884a3d 100644 --- a/ElectronClient/gui/NotePropertiesDialog.jsx +++ b/ElectronClient/gui/NotePropertiesDialog.jsx @@ -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 = ( - bridge().openExternal(url)} style={theme.urlStyle}> + bridge().openExternal(url)} style={urlStyle}> {displayedValue} );