mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-24 09:16:07 +08:00
6fcd5f2ced
Summary: Initial styles on attachments ui More file uploading UI fix race condition in draft saving attachments and uploads interweaved Test Plan: edgehill --test Reviewers: bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D1610
26 lines
780 B
CoffeeScript
26 lines
780 B
CoffeeScript
path = require 'path'
|
|
React = require 'react'
|
|
AttachmentComponent = require './attachment-component'
|
|
|
|
class ImageAttachmentComponent extends AttachmentComponent
|
|
@displayName: 'ImageAttachmentComponent'
|
|
|
|
render: =>
|
|
<div className={"attachment-inner-wrap " + @props.download?.state() ? ""}>
|
|
<span className="attachment-download-bar-wrap">
|
|
<span className="attachment-bar-bg"></span>
|
|
<span className="attachment-download-progress" style={@_downloadProgressStyle()}></span>
|
|
</span>
|
|
|
|
<span className="attachment-file-actions">
|
|
{@_fileActions()}
|
|
</span>
|
|
|
|
<div className="attachment-preview" onClick={@_onClickView}>
|
|
<img src={@props.targetPath} />
|
|
</div>
|
|
|
|
</div>
|
|
|
|
module.exports = ImageAttachmentComponent
|