Skip to content

Commit f1d507c

Browse files
committed
Add title property to truncate-able preview urls so that on-hover tooltips show
1 parent 630a420 commit f1d507c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/scripts/clipperUI/components/previewViewer/bookmarkPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class BookmarkPreview extends PreviewComponentBase<{}, ClipperStateProp> {
9999
{ this.renderTitleIfExists(result.title) }
100100
<tr>
101101
<td style={urlTdStyle}>
102-
<a href={url} target="_blank">{url}</a>
102+
<a href={url} target="_blank" title={url}>{url}</a>
103103
</td>
104104
</tr>
105105
{ this.renderDescriptionIfExists(result.description) }

src/scripts/clipperUI/components/previewViewer/previewComponentBase.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export abstract class PreviewComponentBase<TState, TProps extends ClipperStatePr
8383
{this.props.clipperState.currentMode.get() !== ClipMode.Bookmark
8484
? <div id={Constants.Ids.previewUrlContainer}>
8585
{sourceUrlCitationPrefix}
86-
<a href={sourceUrl} target="_blank">{sourceUrl}</a>
86+
<a href={sourceUrl} target="_blank" title={sourceUrl}>{sourceUrl}</a>
8787
</div>
8888
: undefined}
8989
</div>

0 commit comments

Comments
 (0)