Skip to content

Commit

Permalink
Add title attributes so you can view full attachment names #430
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow committed Dec 14, 2017
1 parent 436ea29 commit 3069bc2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/src/components/attachment-items.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ export class AttachmentItem extends Component {
mode={RetinaImg.Mode.ContentPreserve}
name={fileIconName}
/>
<span className="file-name">{displayName}</span>
<span className="file-name" title={displayName}>
{displayName}
</span>
<span className="file-size">{displaySize ? `(${displaySize})` : ''}</span>
{this._canPreview() ? (
<RetinaImg
Expand Down Expand Up @@ -298,7 +300,9 @@ export class ImageAttachmentItem extends Component {
/>
<div className="file-preview" onDoubleClick={this._onOpenAttachment}>
<div className="file-name-container">
<div className="file-name">{displayName}</div>
<div className="file-name" title={displayName}>
{displayName}
</div>
</div>
{this.renderImage()}
</div>
Expand Down

0 comments on commit 3069bc2

Please sign in to comment.