mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-11 15:34:27 +08:00
fix(attachments): Double-click to view instead of single-click
This is related to T2309
This commit is contained in:
parent
c5acf8fcb2
commit
38c6f8b866
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ class AttachmentComponent extends React.Component
|
|||
|
||||
render: =>
|
||||
<AttachmentDragContainer downloadUrl={@_getDragDownloadURL()}>
|
||||
<div className="inner" onClick={@_onClickView}>
|
||||
<div className="inner" onDoubleClick={@_onClickView}>
|
||||
<span className={"progress-bar-wrap state-#{@props.download?.state ? ""}"}>
|
||||
<span className="progress-background"></span>
|
||||
<span className="progress-foreground" style={@_downloadProgressStyle()}></span>
|
||||
|
|
|
@ -15,7 +15,7 @@ class ImageAttachmentComponent extends AttachmentComponent
|
|||
|
||||
{@_renderFileActions()}
|
||||
|
||||
<div className="file-preview" onClick={@_onClickView}>
|
||||
<div className="file-preview" onDoubleClick={@_onClickView}>
|
||||
<div className="file-name-container">
|
||||
<div className="file-name">{@props.file.displayName()}</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue